HI friends please any help about problem happened suddenly with my code it execute the query but doesn't redirect to the page below my code please help Code: if($cout>0){ $row=mysql_fetch_array($sql); $note = $row['type']; if($row['type'] == 1){ $sql_ins=mysql_query("INSERT INTO reg VALUES(NULL, '$uname', '$pwd', '$date', '$note')"); header('location:bos.php'); } if($row['type']=='2') { $sql_ins=mysql_query("INSERT INTO reg VALUES(NULL, '$uname', '$pwd', '$date', '$note')"); header('location:everyone.php');} }} ?>