Microsoft
Software
Hardware
Network
Question : What is wrong with the way that I'm writing this if statement?
I want to find out if there's a value of 0000-00-00 in my date field. When I write:
if($confirmed=="0000-00-00
"){
echo "Yes";
}
...it's not working. What am I doing wrong? I'm thinking that it's a date field there's something in my syntax that's incorrect but I don't know what.
Thoughts?
Answer : What is wrong with the way that I'm writing this if statement?
Looks fine to me. Try this for a test. The next question is where are you getting "$confirmed" and why do you think it contains "0000-00-00"?
1: 2: 3: 4:
$confirmed = "0000-00-00"; if($confirmed=="0000-00-00"){ echo "Yes"; }
Random Solutions
How to get two new Primary keys, sent to two Foriegn keys
Exchange 2007 Relay to External
Clients not connecting to WSUS
MySQL update set Concatenate question
Running netlogon script
ADFIND, DSQUERY or LDAP Querie for Pulling LastLogOn
How to stablish a proper setup in MS Outlook 2003 encrypting mails
Multiple Links onto one big graphic
Problems after Sharepoint server 2010 install - can not open central administration
Automatically Adding Text to Cells