rapidwebltd / php-google-people-api

👥 This package provides a user friendly way of interacting with Google Contacts via the Google People API.
GNU Lesser General Public License v3.0
100 stars 39 forks source link

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 #19

Open extrememontage opened 5 years ago

extrememontage commented 5 years ago

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!](https://www.bountysource.com/issues/75413638-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?utm_campaign=plugin&utm_content=tracker%2F87779827&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F87779827&utm_medium=issues&utm_source=github).
wachira-brandon commented 1 year ago

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