RE:RE: [PHP-DB] I`m having a little trouble displaying future dates...
| From: | Trond Erling Hundal | Date: | Wed, 11 Oct 2000 11:35:14 +0000 |
| Subject: | RE:RE: [PHP-DB] I`m having a little trouble displaying future dates... | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-3519@lists.php.net to get a copy of this message | ||
I`ve solved my problem by doing this:
$sql_date = "select DATE_ADD(CURRENT_DATE(), INTERVAL 1 DAY)" ;
$sql_result = mysql_query($sql_date, $link) ;
$date_array = mysql_fetch_array($sql_result) ;
and then make a string: $new_date = "$date_array[0] 07:00:00" ;
And insert this string into the db..
that works just fine too... :)