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
jQuery AutoComplete Problem
Sync Access database contacts with Exchange Contacts list
Jython - need try / except Logic for .py Script
IOS VPN Configuration for iPhone
Looping over google maps v3 markers
IE-SSO supported with IronPort S160?
mozilla keeps session even if close it
SBS Migration 21 days patch
Visual Studio 2010 ASP.NET 4.0 not registered error
Visio Stencil showing switch ports