foreach() error..
Posted: Tue Jun 12, 2007 5:16 am
hi, im having an error(Warning: Invalid argument supplied for foreach()) regarding foreach function. im a bit confused because it runs well on my localhost but not on the live web server.
please help me out how to fixed this. here is my code:
foreach ($data as $key => $row) {
$day[$key] = $row['day'];
$event[$key] = $row['what'];
}
thanks in advance..
please help me out how to fixed this. here is my code:
foreach ($data as $key => $row) {
$day[$key] = $row['day'];
$event[$key] = $row['what'];
}
thanks in advance..