Jump to content

'AND' not working


ueon

Recommended Posts

$jobs = mysql_query("SELECT * FROM work WHERE email='$request' AND primary='1'"); // This doesn't work

$jobs = mysql_query("SELECT * FROM work WHERE email='$request'"); // This works

 

I know for a fact that there's a column in work called "primary"

 

but it's giving me this error: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource

Link to comment
https://forums.phpfreaks.com/topic/245296-and-not-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.