Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Jun 12, 2019 · 1 comment

Comments

@extrememontage
Copy link

extrememontage commented Jun 12, 2019

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.

@wachira-brandon
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants