Hi
I have a "parse error, unexpected T_VARIABLE" in the following code
it is in line 43 that will be the line starting with $sno=$row['0'];
I have tryed different things like including { } in the beginning and the end of the string
and cant find the problem
can any body pleas help me out
<?php
if(mysql_affected_row()==1)
mysql_select_db("dbregistration"
or die("Unable to select database"
;
$result=mysql_query("SELECT*from student WHERE sno='$sno'"
;
while($row=mysql_query(fetch_row($result))
$sno=$row['0'];
echo"your student number is:$sno";
?>
thanks