hi guys,
in the following code im getting stuck in an infinite loop. it happens within the while statement. ive used just about identical code in other parts of my site with no problems, why is this happening here? im using odbc and access...
$sql = "SELECT id, date, name, email, subject, body
FROM $this->table_name
WHERE board_id=$this->board_id
AND thread_id=0";
$result = $this->db->query($sql);
if(DB::isError($result))
return false;
if($this->style=='basic' || $this->style=='flat')
$html.= "<ul>\n";
while($record = $result->fetchRow()) {
INFINATE LOOP IN HERE *
$id = $record['id'];
$subject = $record['subject'];
$name = $record['name'];
$email = $record['email'];
$date = $record['date'];
$body = $record['body'];
// echo $c++."<br>";
// if ($c>100) return true;
...
thanks,
-paul