MySQL subdate function
| From: | Mark Polsen | Date: | Mon, 21 Aug 2000 08:03:42 +0000 |
| Subject: | MySQL subdate function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-12729@lists.php.net to get a copy of this message | ||
Hi all,
I need to display a result using MySQL's subdate function. I have the following but need to
know to display it in php.
$date = $row[date];
$date_diff = 'subdate($date, interval 3 day)';
$dte_result = mysql_query("select $date_diff from db_name where key_number =
'$eventno'");
Thank,
Mark