0) { while ($row = mysql_fetch_row($result)) { for ($i=0; $i' . $row[$i] . ''; echo "\n"; } mysql_close($dbh); } if ($rowsFound = 0) echo "No items found with that name."; ?>