I'm trying to do this:
But it's not working. It must be something to do with the AND part but I don't know what. Any clues?
Code:
$query = "SELECT * FROM response WHERE recipe_id='$file' AND allow='1'"; $result = mysql_query($query) or trigger_error("Query: $query\n<br>MySQL Error: " . mysql_error()); if (!$result) { echo ""; } else { echo "blah blah"; }
Comment