I want to select rows from table "students" where username=name from php file. How I can print the rows returned ?? I used this but the values not printed (no results appears )
$result=mysql_query("select name from students where name=$name);
if($result){
while($row=mysql_fetch_array($result))
{
echo " $row['name'];
}
}