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
Windows Server 2008 R2 iSCSI Initiator and HP D2D CHAP issue
Fill Combo Box Method
Mass user Migrate from LCS to OCS 2007
cannot reset Fortinet fortiWIFI 80C to factory settings
Modifing the configuration of a PIX 515 with Fail-over license
WCF Problem: The private key is not present in the X.509 certificate.
Why does my outlook show three tasks for every email I mark?
HP SAN drive fail
MS Access - Generating combined values
Unable to set send-as for Bes Express 5.01 on Exchange 2010