rapidwebltd/php-google-people-api

Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in C:\xampp\htdocs\Sacco1\process\login.php:22 Stack trace: #0 {main} thrown in C:\xampp\htdocs\Sacco1\process\login.php on line 22

extrememontage opened this issue · 1 comments

hi am trying to log in with my credentials and am geting this error.

Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in C:\xampp\htdocs\Sacco1\process\login.php:22 Stack trace: #0 {main} thrown in C:\xampp\htdocs\Sacco1\process\login.php on line 22

and this is the code
$uname = mysql_real_escape_string($uname);
$upass = mysql_real_escape_string($upass);
$upass = md5($upass);
$sql = "SELECT * FROM users WHERE uname ='$uname' AND upassword ='$upass'";
$user = $driver->perform_request($sql) or $error='SQL ERROR '.mysql_error().'';
if(mysql_num_rows($user)>1)

is the code correct? or why is it not getting information from the database?


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Also having the same problem
Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in C:\xampp\htdocs\patanisho\process2.php:9 Stack trace: #0 {main} thrown in C:\xampp\htdocs\patanisho\process2.php on line 9