mmmmm SELECT
| From: | Bruce Levick | Date: | Tue, 07 Jan 2003 00:27:45 +0000 |
| Subject: | mmmmm SELECT | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-130517@lists.php.net to get a copy of this message | ||
I have this silly problem. This select query works fine.
####################################################
$query_retrievetasks = "SELECT * FROM tasks, users WHERE tasks.UID =
users.User_id ORDER by tasks.ID";
####################################################
But when I add a further filter (AND active="yes") ....it comes up
blank...currently all the active rows in the tasks table are equal to
"yes" so they should still display, but comes up with a blank.
####################################################
$query_retrievetasks = "SELECT * FROM tasks, users WHERE tasks.UID =
users.User_id AND active="yes" ORDER by tasks.ID";
####################################################
Can't understand this, is it just something simple I am missing??
Cheers