Tommi Virtanen wrote:
Hi!

$first_date = 2003-12-01
$end_date = 2004-01-15


while ( $first_date <= $end_date) {


$sql = "INSERT INTO time_table (id, date, person_id) VALUES (35,$first_date,0)";
$result = mysql_query($sql, $conn);


[next date] WHAT CODE TO HERE????

1) Convert current $first_date into timestamp, 2) add 1 day (in seconds), 3) convert it back to SQL-format and use it in next cycle-step.


}




--
Pavel a.k.a. Papi

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



Reply via email to