"; echo "Current Variables are $id and $title! "; while($row = mysql_fetch_array($result)){ if($row != ""){ echo $row.""; } else{ echo "No items found! "; } } echo "The while loop broke!"; ?>