> To: PHP
> Subject: RE: [PHP] Problem with date
> 
> >
> >
> >       How about a little debugging here (and possibly elsewhere):
> >
> >       if (isset($pubdate) && ($pubdate >0)) {
> >          $pubdate=strtotime($pubdate);
> >       } else {
> >          die("Barf.  Can't run a string to time conversion on 0 or
-1.");
> >       }
> >
> 
> Thanks Kevin,
> 
> This bombs and gives me the BARF!
> 

FYI the date field is stored in a MySQL DB as a datetime type


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

Reply via email to