I am doing something like this:
Code: Select all
function report_daily_products_info($date_to_report)
{
$short_date = extract_date_only($date_to_report);
global $dbname;
mysql_select_db($dbname);
$sql = "SELECT * FROM transactions WHERE date = '$short_date' && type = 'stock' ORDER BY id ASC";
$content = mysql_query($sql);
$Xcontent = mysql_fetch_array($content);
$num_rows = mysql_num_rows($content);
...
..
..etc etcCode: Select all
Warning: Division by zero in location\of\site\functions_reports.php on line 138Code: Select all
$report_daily_products_info_array = report_daily_products_info($date_to_report);I'm sort of stuck on this.... any help would be greatly appreciated.
Rob