So I'm running the code from this link for testing, trying to learn how sessions work. https://www.formget.com/login-form-in-php/
and I'm getting an error message
Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in :20 Stack trace: #0 : include() #1 {main} thrown in on line 20
its to do with the mysql_real_escape_string()
in the login.php
file but I'm unsure what's wrong with it. As it protects against MySQL injections, has this function been renamed since the tutorial was posted or something?
Edit: This is not a duplicate as I'm not asking how to protect against MySQL injections I was asking whether the function had been removed