Open extrememontage opened 5 years 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
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?