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
Mixing x32 and x64 apps and OS's
I HAVE A SONY VAIO MODEL: VGN-FW351J
isapi rewrite - helicon
Windows 2008 Domain Controller Unavailable (but working)
Using log4j, how do I log to a file in a directory
vb.net - extract data
Check if existing record in database?
Exchange 2010 inbound attachment size limit
How to configure SSG-140 with multiply public IP's on single interface.
vfp grid number format with commas set decimals