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
KMS Activation Multiple Keys
Windows Server 2008 R2 iSCSI Initiator and HP D2D CHAP issue
How to separate multiple email accounts into different data files in Outlook 2010
Video Chat Capabilities
Shell command doesn't work on all computers
Setting Up Raid On Windows 2003 Server With Faulty Hard Drive
How can I parse the following string, store it in a variable and then use those variables to populate some txt fields?
Word 2002/xp: Error Message: "Run-time error '4248'; 'This command is not available because no document is open.'"
sbs 2008 backup configuration
Setting msExchMailboxSecurityDescr
iptor with VB.NET