if( strcmp($date,"0000-00-00") )
{ do something}

-----Original Message-----
From: its me [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 12:16 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] date problem


i have an input field in a form that accept date called $date and in databse
i made it of type $date so its defualt is 0000-00-00

the problem is when i say:
if($date!="0000-00-00")
{do something}

he doesn't understand $date!="0000-00-00"



Rehab M.Shouman

------------------------------------------------------------
------------------------------------------------------------


---------------------------------------------------------------------
Express yourself with a super cool email address from BigMailBox.com.
Hundreds of choices. It's free!
http://www.bigmailbox.com
---------------------------------------------------------------------

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to