Ashoar Posted April 8, 2009 Share Posted April 8, 2009 Is there another method to confirm a users session username and password? When i use "confirm_user()" i receive this error: "Fatal error: Call to undefined function confirm_user()" The line of code is: if (confirm_user($_SESSION['username'],$_SESSION['password']) ) { Thanks. Link to comment https://forums.phpfreaks.com/topic/153153-confirm_user/ Share on other sites More sharing options...
hastishah Posted April 8, 2009 Share Posted April 8, 2009 Hi can you post your code confirm_user is user defined function or not. what its return type. Link to comment https://forums.phpfreaks.com/topic/153153-confirm_user/#findComment-804479 Share on other sites More sharing options...
Ashoar Posted April 8, 2009 Author Share Posted April 8, 2009 Here it is if (confirm_user($_SESSION['username'],$_SESSION['password']) ) { $online = "DELETE FROM online WHERE username = '".mysql_real_escape_string($_SESSION['username'])."';"; mysql_query($online); $online = "INSERT INTO online ( username, time ) VALUES ( '".mysql_real_escape_string($_SESSION['username'])."', '".time()."' );"; mysql_query($online); mysql_close($database_connection); } Link to comment https://forums.phpfreaks.com/topic/153153-confirm_user/#findComment-804481 Share on other sites More sharing options...
hastishah Posted April 8, 2009 Share Posted April 8, 2009 hi Confirm_user is function or not if yes then paste that code here Link to comment https://forums.phpfreaks.com/topic/153153-confirm_user/#findComment-804489 Share on other sites More sharing options...
Ashoar Posted April 8, 2009 Author Share Posted April 8, 2009 Oh no it isnt. I thought it was a function from what i read. Is there another way of what i am trying to do? Link to comment https://forums.phpfreaks.com/topic/153153-confirm_user/#findComment-804490 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.