title: what change i need to fix this Call to undefined function session_register() in public/html/php/
body: <p>here is the code which giving error in session_register() its gives error when i try to login i dont know what to do now so what change i need to fix this please answer me the solution with reason to understand the scenerio which making this problem   </p>
  
  <pre><code>&lt;?php 
      ob_start();
      session_start();
      $userid   = $_POST['userid'];
      $psv= $_POST['password'];
  
      require_once('../include/config.php');
      require_once('../connection.php');
  
      mysql_select_db(DB, $conn);
  
      if(!$userid || !$psv){                      
      echo("Please enter valid userid and password.");
      echo $userid;
      echo $password;
      header("location:index.php?err=Please%20enter%20you%20user%20id%20an%20password");
      return; 
      }
  
  
      $query="select * from ppra_admin where admin='".$userid."' and Password='".$psv."'";
  
      $result = mysql_query($query, $conn) or die(mysql_error());
      $no=mysql_num_rows($result);
  
          if($no &gt; 0){
      session_register("name");
      $_SESSION['name'] = $userid; 
  
      session_register("status");
      $_SESSION['status'] = "True"; 
      /*
      //  $_SESSION['status'] = "True"; 
      //  $_SESSION['name'] = $userid; 
  
      echo $name. "&lt;br&gt;";
      echo $status. "&lt;br&gt;";
      echo $query;*/
       header("location:menu.php");   
          }else{
      header("location:index.php?err=You%20have%20entered%20an%20invalid%20password");
         return;      
      }
      ?&gt;
  </code></pre>