Hi
I have a "parse error, unexpected T_VARIABLE" in the following php 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
that is not working at all
can you pleas help me out
I have a "parse error, unexpected T_VARIABLE" in the following php 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
that is not working at all
can you pleas help me out
Code:
<?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";
?>
Comment