Hi,
I have the following code, which is meant to select the column description, and print out each row. However for somereason it only prints the 1st entry. Can anyone see why? Also its very slow to load, the description column is a max length of 255 charactors, and at the moment the logest is about 100, is there anyway I can speed it up?.
$sql = "SELECT description FROM menu WHERE menu='dinner'";
$result=db_query($sql);
if (!$result) {
echo 'Sorry No Records';
} else {
while($row=mysql_fetch_array($result)) {
echo '<font face="Verdana, Arial, Helvetica, sans-serif" size="2">'.$row[0].'</font>';
echo '<font face="Verdana, Arial, Helvetica, sans-serif" size="2">'.$row[1].'</font>';
echo '<font face="Verdana, Arial, Helvetica, sans-serif" size="2">'.$row[2].'</font>';
}
}