C
|
cgphp 12/10/2011 |
Try to debug your code. Echo the $row['viewing_date'] value before calling explode(): echo $row['viewing_date'];
$sql = "SELECT `viewing_date`, `start_time`, `end_time` FROM `viewing` WHERE `case_no` = ".$case; |
S
|
stiven author 12/10/2011 |
ok I found the problem. the first three records on the list didn't exist on the table viewing and that's why it was throwing that error. Try to debug your code. Echo the $row['viewing_date'] value before calling explode(): echo $row['viewing_date'];
$sql = "SELECT `viewing_date`, `start_time`, `end_time` FROM `viewing` WHERE `case_no` = ".$case; |