Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in index.php on line 26
Linha:
Código (PHP):
Linha:
Código (PHP):
<?php
while($row = mysql_fetch_array($sql)){ //Linha 26
$sectionID = $row["id"];
$sectionTitle = $row["title"];
$displayList .= '<br /><a href="section.php?id=' . $sectionID . '"><img src="style/sectionPic.jpg" width="61" height="23" alt="Section" />
' . $sectionTitle . '</a><br /><hr />';
}
?>
while($row = mysql_fetch_array($sql)){ //Linha 26
$sectionID = $row["id"];
$sectionTitle = $row["title"];
$displayList .= '<br /><a href="section.php?id=' . $sectionID . '"><img src="style/sectionPic.jpg" width="61" height="23" alt="Section" />
' . $sectionTitle . '</a><br /><hr />';
}
?>