note 3210 deleted from date by ronabop
| From: | ronabop@php.net | Date: | Sat, 10 Mar 2001 22:50:41 +0000 |
| Subject: | note 3210 deleted from date by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12213@lists.php.net to get a copy of this message | ||
I don't if this will help anyone, but to insert into a date field using a mysql database and
date(), eregi_replace("-", $data[date]);
If you have an array with a date field, you can use the following:
list($year,$month,$day)=split("-",$data[date]");
$date = $year.$month.$day;
I believe you can also directly pipe the array-variable to the date() function directly.