while problem
Posted: Fri Aug 08, 2003 9:52 pm
Okay, I made a search form...
while($r=mysql_fetch_array($result)) {
$blah=$r["name"];
echo $blah;
echo "<br>";
}
that code works when you hit search, but when I put
while($r=mysql_fetch_array($result)) {
$blah=$r["name"];
echo $blah;
echo "<br>";
} else {
echo "No search results.";
}
it gives me on error and says parse error on the line with
} else {
help please ! thankyou
while($r=mysql_fetch_array($result)) {
$blah=$r["name"];
echo $blah;
echo "<br>";
}
that code works when you hit search, but when I put
while($r=mysql_fetch_array($result)) {
$blah=$r["name"];
echo $blah;
echo "<br>";
} else {
echo "No search results.";
}
it gives me on error and says parse error on the line with
} else {
help please ! thankyou