Microsoft
Software
Hardware
Network
Question : Why does this query not work?
This query works:
$querystate = "select * from registration WHERE songwriting_contest <> '0000-00-00' AND registration_type <> 'voter' order by first_name";
This query does not:
$querystate = "select * from registration WHERE songwriting_contest <> '0000-00-00' AND AND songwriting_contest < $contest_start AND registration_type <> 'voter' order by first_name";
I've checked the $contest_start value and that's coming up fine, but when I insert it into the query, I get nothing. No errors, but no data.
What am I doing wrong?
Answer : Why does this query not work?
$querystate = "select * from registration WHERE songwriting_contest <> '0000-00-00' AND songwriting_contest < $contest_start AND registration_type <> 'voter' order by first_name";
'you had an extra AND
Random Solutions
multiple email domains and sender selection
How to set the backcolor of the entire gridview rows quickly +vb.net 2005
Two GIG Nics in my HP workstation how do I set them up to load balance?
OCS 2007 R2 and Cisco call manager
Terminal server 2008 R2 Pinned Taskbar Links
Move applications between networked computers
Microsoft System Center Ops Manager 2007 - Reporting
Select All Columns Count Column Group By Only One Column?
Windows 7 recently used programs is blank
URL Rewrite