Username: Password: currently my process.php but is do the very same error..I i do not know seem to find the problem. Please assist Here is the code
This is what it keeps showing
Fatal error: Uncaught Error: call to undefined function mysql_real_escape_string()
Please help
I recommend to use mysqli (replace mysql through mysqli in your code) and to connect to your database with a variable.
You are watching: Call to undefined function mysql_real_escape_string()
Like this:
$db = mysqli_connect("localhost", "username", "", "database");Then you need to put $db in your mysqli_query as a parameter.
Here is one example:
$result = mysqli_query($db, "select * from login wherein username="$username" and password="$password"");

Try below... It will work.
As someone mention in above you must replace every the mysql with mysqli in your code.
Please express this attach MySQL vs MySQLi when using PHP
And likewise remove "mysql_real_escape_string" code also.
Thank you.

Thanks for contributing an answer to ridge Overflow!
Please be certain to answer the question. Administer details and also share your research!But avoid …
Asking for help, clarification, or responding to various other answers.Making statements based on opinion; earlier them up with references or personal experience.See more: Working At Smooth Sailing Realty And Property Management, Inc
To find out more, watch our tips on writing an excellent answers.
article Your answer Discard
By clicking “Post your Answer”, you agree come our regards to service, privacy policy and cookie plan
Not the prize you're spring for? Browse various other questions tagged html mysql phpmyadmin or questioning your own question.

site architecture / logo © 2021 ridge Exchange Inc; user contributions license is granted under cc by-sa. Rev2021.12.22.41046
Stack Overflow works best with JavaScript allowed

her privacy
By clicking “Accept every cookies”, friend agree ridge Exchange deserve to store cookie on your device and disclose info in accordance v our Cookie Policy.