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
Setup a wenpage in Windows Server 2008
ShellExecute while remaining in process
Apple Mail - Find local Exchange email after changing accounts?
Unable to Search Empty Folders
Are Mac's easier to support than PC's? Why or why not?
Secondary namespace in WSDL
Check colum A for names in the name matches a sheet name in any workbook then copy to the sheet where we are quering from.
error opening with internet explorer in MOSS 2007
google site comparison tool
Identifying a cell in a declaration as having any value that falls within a specified range