C
|
cgphp 12/31/2011 |
$sql = "SELECT COUNT(*) as num_products FROM table_name WHERE MONTH(Date_Sale) = 5 AND product='knifes'";
$sql = "SELECT MONTH(Date_Sale) as months, COUNT(*) as num_products FROM table_name WHERE product='knifes' GROUP BY MONTH(Date_Sale)"; |
J
|
joiresende author 12/31/2011 |
$sql = "SELECT COUNT(*) as num_products FROM table_name WHERE MONTH(Date_Sale) = 5 AND product='knifes'";
$sql = "SELECT MONTH(Date_Sale) as months, COUNT(*) as num_products FROM table_name WHERE product='knifes' GROUP BY MONTH(Date_Sale)";
|
C
|
cgphp 12/31/2011 |
I can't tell you where to put the code if I don't know much more about what you want to achieve. |
J
|
joiresende author 12/31/2011 |
Cristian, thanks for the help |
C
|
cgphp 12/31/2011 |
Not sure I understand what you mean. Could you post some screenshot to better illustrate your request? |
J
|
joiresende author 1/1/2012 |
thanks for the help, I managed to solve. |