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
Help needed to choose create automated process for data feed FTP upload
urgent: how to change the nic speed from 100 half to 1000full in Solaris10
VMware Workstation 7.1 Won't Install
iphone sees wifi network but password incorrect
Include page headers when printing HTML pages with different headers on some of each page
Script needed to close program and stop/start service
Microsoft.SqlServer.Dts.Pi
peline in XML
can't find Printer Setup Utility in Mac OS X 10.5.8
What software can I use to monitor my internet bandwidth usage?
Security Status within SBS Console showing all workstations as critical