A login and signup form using HTML, PHP, and MySQL. This form allows users to register and login. All information is stored in a MySQL database. After successful login the user is redirected to their dashboard. Project Website:
In line 22 of the login.php file, Visual Studio Code says tha the command "mysql_error" is no longer available in php5 and above, so this piece of code is actually no longer usable. Pleas make a version that supports php8.
This issues was an easy fix but an annoyance. Sorry about that!
Here's what the issue was
When the user was not logged in it would redirect to the dashboard page (which is bad) basically rendering the code useless if they knew the right url to access.
How I fiexed it?
To make a secure page add the contents from "auth.php" to the top of any .php page