Jump to content

login errors and variable no show


minus84

Recommended Posts

hi im having trouble with my login script i keep getting the errors

 

Deprecated: Function session_register() is deprecated in C:\wamp\www\login.php on line 53

 

Deprecated: Function session_register() is deprecated in C:\wamp\www\login.php on line 57

 

Deprecated: Function session_register() is deprecated in C:\wamp\www\login.php on line 61

 

i just wanted to knw wot they mean the page styll runs ok, is there any way i can make it work

 

$sql = mysql_query("SELECT * FROM myMembers WHERE email='$email' AND password='$pass' AND email_activated='1'"); 
$login_check = mysql_num_rows($sql);

if($login_check > 0){ 

    while ($row = mysql_fetch_array($sql)){ 

        $id = $row["id"];   
        session_register('id'); 
        $_SESSION['id'] = $id;
       
    $firstname = $row["firstname"];   
        session_register('firstname'); 
        $_SESSION['firstname'] = $firstname;
       
    $email = $row["email"];   
        session_register('email'); 
        $_SESSION['email'] = $email;
         
        mysql_query("UPDATE myMembers SET last_log_date=now() WHERE id='$id'"); 
   
        $my_msg="Hello $firstname, you have succesfully logged in";
        //print "return_msg=$my_msg&id=$id&firstname=$firstname"; 
       
    } // close while


} else{ 

	$my_msg="Error Your Password Or Email Did Not Match";
// print "return_msg=$my_msg"; 
  exit();
}

}

also im having trouble with my my_msg variable it does not seem to show up i keep gettin error

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.