My code will not loop does anyone know why?
<?php
include ("include/dbconnect.php");
if (isset($ID))
{
$tuts="SELECT * from tutorials where ID='$ID'";
$tuts2=mysql_query($tuts);
$tuts3 = mysql_fetch_array($tuts2);
{
echo "
<table width=100% border=0 cellspacing=3 cellpadding=0>
<tr>
<td>
<font color=#82A1FF size=1 face=Verdana, Arial, Helvetica, sans-serif><b>$tuts3[title]</b><br>
<font color=#000000>By <b>$tuts3[user]</b><br>
<i>$tuts3[description]</i><br>
<br>
$tuts3[message]<br>
<br>
</td>
</tr>
</table>
";
}
}
else if(!isset($id))
{
$tut="SELECT * from tutorials";
$tut2=mysql_query($tut);
while ($tut3=mysql_fetch_array($tut2)) {
echo "
<font color=#000000 size=1 face=Verdana, Arial, Helvetica, sans-serif>
<table width=250 border=0 cellspacing=3 cellpadding=0>
<tr>
<td width=42 height=42>
<div align=center><a href='tutorials.php?ID=$tut3[ID]'><img src='$tut3[avatar]' border='0' alt='$tut3[title]' target='main'></a></div></td>
<td width=208><font color=#82A1FF size=1 face=Verdana, Arial, Helvetica, sans-serif><strong>$tut3[title]</strong><br>
By <strong>$tut3[user]</strong></font><br></font></td>
</tr></table>
"; }
}
?>