that should do it :)
uend: " . $uend;
while($ufirst <= $uend){
//do other stuff here, insert into database etc
$ufirst = strtotime("+1 day", $ufirst);
$formatted = date("d/m/Y", $ufirst);
echo "ufirst: " . $ufirst . " : " . $formatted;
}
?>
---
Luke
"Tommi Virtanen" <[EMAIL PROTECTED]> wrot
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
2 matches
Mail list logo