I am wondering how I might go about adding a certain number of days to the date retrieved in the following query. Obviously the code "$auction_end = ($data["curdate()"] + 7);"
doesn't work.
Code: Select all
<?php
mysql_select_db($database_admin_conn, $admin_conn);
$query_rs_date_time = "SELECT curdate(), curtime();";
$result = mysql_query($query_rs_date_time, $admin_conn) or die(mysql_error("screwed again"));
$data = mysql_fetch_array($result);
$date = $data["curdate()"];
$auction_end = ($data["curdate()"] + 7);
?>Any help appreciated..
----------------------------
SteedVLX