im getting a parse error on line 26 when trying to use this code. Im new to php and was curious if someone could help.
Thanks
<head><title>Grab your MySQL Data </title></head>
<body bgcolor="#FFFFFF">
<?
/ declare some relevant variables /
$DBhost = "localhost";
$DBuser = "root";
$DBpass = "7130mysql";
$DBName = "mydb";
$table = "news";
mysql_connect($DBhost,$DBuser,$DBpass) or die("Unable to connect to database");
@mysql_select_db("$DBName") or die("Unable to select database $DBName"); $sqlquery = "Select * from news order by id DESC";
$result = mysql_query($sqlquery);
$number = mysql_numrows($result);
$i = 0; / Make sure $i is set to zero /
if ($number < 1) {
print "<CENTER><P>There Were No Results for Your Search</CENTER>";
}
else {
if ($number < 4) {
while ($i < 4) / loop until $i = 4 then end /
}
else {
($number > 1)
}
$thename = mysql_result($result,$i,"name");
$thestory = mysql_result($result,$i,"story");
$thedate = mysql_result($result,$i,"date");
print "<p><b>Name:</b> $thename<br><b>Story:</b>
$thestory<br><b>Date:</b>$thedate</p>";
$i++; / Add $i by one and loop again /
}
}
?>
</BODY>