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
syslink Router
Registry, Winlogon, KEY_WOW64_64KEY errors
Apple iWeb - how to save HTML to Disk or to publish the web site via FTP?
outlook not running rules
Exchange 2010 Mailbox Role Installation Error
Time/Date Function Timestamp Incorrect
Looking for a Image/Click rotator for products
Anyone knows what this fruit is called in english and if I can buy it in the USA somewhere even online
Problem with First Data Global Gateway Connection
ISAPI Filter & MOSS2007