Jump to content

Help error on page.


gammaman

Recommended Posts

what am I missing, the page loads blank, which it should anyway, but it does not redirect to either page.

 

<?php
   session_start();
$Conn=mysql_connect("localhost","fierm","13183");
if(!$Conn){
   echo "failed";
  }
  else{
  

   $user=$_POST['user'];
   $pass=$_POST['pass'];
   mysql_select_db("fierm");
   $result=mysql_query("select studentID, password FROM Student WHERE studentID='$user' 
                 and password='$pass'");
   if(mysql_num_rows($result)==1){
         $_SESSION['allowed']=1;
         header('location:student.php');
   }      
  

   else{
      //echo "Invalid Password, Return To Login";
      $_SESSION['allowed']=0;
      header('location:studentlog.php');
   }

     
    
  
}
?>
<html>
<body>
</body>
</html>

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/103704-help-error-on-page/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.