Hi All.
Can anyone see why this should not work.
This works
mysql_select_db($database_pin, $pin);
$query = "SELECT clientID, f_company_name, month(f_date), COUNT(f_bag) as ct FROM found WHERE clientID = 'SOU' GROUP BY MONTH (f_date) ";
If I add a variable to catch the content of a SESSION var and echo it to the browser, $clid it has the expected content of "SOU"
This does not
$clid = $_SESSION['code'];
mysql_select_db($database_pin, $pin);
$query = "SELECT clientID, f_company_name, month(f_date), COUNT(f_bag) as ct FROM found WHERE clientID = " . $clid . " GROUP BY MONTH (f_date) ";