Hello everbody,
I have question about a mySQL query that is failing, can somebody tell me whats wrong?
1)This one works;
$result = mysql_query("SELECT prod_id, prod_name, prod_description_small FROM store_products ORDER BY prod_name limit $offset,$limit");
2)But it must have a WHERE statement in it;
$result = mysql_query("SELECT prod_id, prod_name, prod_description_small FROM store_products WHERE prod_category=$prod_cat ORDER BY prod_name limit $offset,$limit");
And number two is failing whith this error:
Supplied argument is not a valid MySQL result resource in line x
What am I doing wrong?
Kind regards
Maarten Elsenaar