Jump to content

[SOLVED] what's wrong with my query?


ahs10

Recommended Posts

here it is, i have records in my database that meet this criteria.  what's wrong?

 

$query = "SELECT record_id, record_status, DATE_FORMAT(record_date, '%c/%e/%Y') AS record_date FROM records WHERE (record_location LIKE 'TX') AND (record_status != 'REJECTED' AND record_status != 'CANCELLED')";

 

...if i finish this up with....

 

$result = mysql_query($query);

$numRows = mysql_num_rows($result);

 

....then $numRows equals zero and that's not the case :(

Link to comment
https://forums.phpfreaks.com/topic/88908-solved-whats-wrong-with-my-query/
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.