Hi everybody,
I am new to pyp. I am working on first php enabled database web page which is giving following error.
Parse error: syntax error, unexpected ';' in E:\inetpub\vhosts\snpet.org\httpdocs\php\index.php on line 34
It seems syntex error. I have consulted all onoline php help to trap error in following code.
$query="SELECT * from news";
$result=mysql_query($query);
#num = mysql_numrows(result);
mysql_close();
echo "<B> News Table data</b> <br>";
$i=0;
while($i < #num) {
$nheading = mysql_result($result,$i,"nheading"); (......line 34)
$ndetail = mysql_result($result,$i,"ndetail");
$ntype= mysql_result($result,$i,"ntype");
$ndate= mysql_result($result,$i,"ndate");
$uploadeddate= mysql_result($result,$i,"uploadeddate");
$i = $i+1;
}
echo "$i Rows listed.";
?>
Can anybody trap the error.
Regards,


