hi everyone,
i have a problem related to a MySql code in PHP:
i have the following query:
$query4="SELECT MAX(PSM_ID) AS no_semaines FROM T_PLN_JOUR_PJR WHERE (PAN_ID < 2004 ) GROUP BY PAN_ID HAVING COUNT (*) >= 365 ;";
$result4=mysql_query($query4);
where PSM_ID represents the number of the week in a year( going from 1 to 52 or 53) and PAN_ID represents the year's number(e.g :2002, 2003...)
when i verify the result it gives me nothing and by applying mysql_fetch_array it gives "invalid argument"
if i go directly in my database an i verify the query it works perfectly
can anyone tell me where do I make a mistake?
thanks
brux'