1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

nead help about header('location:bos.php');

Discussion in 'Web Development' started by abosirage, Jun 25, 2015.

  1. abosirage

    abosirage Member

    Joined:
    Jul 29, 2010
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Occupation:
    IT
    Location:
    Tripoli-Libya
    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');}
    }}
    ?>
     
    Last edited: Jun 25, 2015

Share This Page