Re: date problem

From: Date: Fri, 05 Jul 2002 11:55:49 +0000
Subject: Re: date problem
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-20336@lists.php.net to get a copy of this message
maybe you should try if($date!=="0000-00-00") {do something} "Dl Neil" <PHPml@DandE.HomeChoice.co.uk> wrote in message news:0df801c1cb3d$c947e420$c200a8c0@jrbrown... > Rehab, > > > 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" > > > Please copy-paste the actual error message. > Also, what is the CREATE TABLE schema for the date field? > Recommend showing us a little more of the surrounding code. > Have you tried adding a debug ECHO $date immediately before the IF > statement, to be sure what you're dealing with? > > Please advise, > =dn >

« previous php.db (#20336) next »