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
Store file in mysql using connector.net and blob field
Video Chat Capabilities
Deleting Unmatched Records MS Acess 2000
Does this HP ML370 G3 server support 64-bit OS?
How can I connect printer to a computer using another computer.
Access 2003/2007 background colour
Blackberry Users can receive but not send
How do I add buttons on a PDF form to add/remove rows of data?
Error string in catch block?
how many version of SQL Server on one machine