Want to fetch a number from a database and use that number to direct to a new page
$sql4="SELECT `level_crossed` FROM $tbl_name WHERE username='$myuser' and password='$mypass'";
$result4=mysql_query($sql4);
$disp4=mysql_fetch_assoc($result4);
header('Location: quiz".$disp4.".php');
Level crossed is of integer type. I want to redirect the current page to quiz1 or quiz2 or quiz 3 page depending on the value stored in level_crossed
attribute.
But it is unable to redirect. URL coming up as http://treasurehunt.faltutalk.com/quiz%22.$result.%22.php