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
How to avoid error message when no record can be returned.
Spell Checker, ASP.NET
Adding a Line Break and Center Text in a Submit Button
Access idrac card in poweredge
Connect a VB6 Client App to a remote SQL Server 2005 database using ADO 2.8
Delete Outlook Cache
how to indent a block of text
RHEL command to eject cd rom
How to crop image blank space in php
How to reinstall Windows 7 with no restore cd.