Hola quisiera me pudieran ayudar a resolver mi duda
1.Campos date
<FONT size=5 color="#000000">Fecha inicio</FONT>
<input type="date" id="date_inicio" name="date_inicio">
<FONT size=5 color="#000000">Fecha fin</FONT>
<input type="date" id="date_fin" name="date_fin">
2.consulta a la base de datos
$sql= "SELECT DISTINCT
u.id as id_sales,
u.date as date,
u.biller_id as biller_id,
c.id as id_company,
c.company as company,
e.cost as cost,
e.id as id_product,
e.name as name,
e.price as price ,
e.category_id as category_id,
s.id as id_item,
s.sale_id as sale_id,
s.product_id as product_id,
a.id as id_category
FROM
sma_sales as u,
sma_companies as c,
sma_products as e,
sma_sale_items as s,
sma_categories as a
WHERE c.id = u.biller_id
AND u.id = s.sale_id
AND s.product_id = e.id
AND c.id=14
AND u.date = $date_inicio
GROUP BY s.id
ORDER BY u.biller_id, e.cost, e.name ";
Dependiendo los datos que ingrese en date_inicio y date_fin tengo que realizar la consulta de mi base de datos ¿como puedo hacer eso?
De ante mano muchas gracias