Warning: Cannot modify header information - headers already sent by (output started at /storage/ssd5/582/2185582/public_html/login.php:6) in /storage/ssd5/582/2185582/public_html/login.php on line 28
That is my error. I followed a tutorial, but I must have messed up along the way.
Here is my code:
<?php
ob_start();
$con = mysql_connect("localhost", "id2185582_uwrfiv", "xxxxxxxxxxx");
if (!$con){
die('Could not connect:' .mysql_error());
}
mysql_select_db("id2185582_studentdb", $con);
That solved that issue, but it created a small new one. It is related so you think that you could answer? It accepted the username and password and the url changed, but the screen didnât change and it didnât redirect me to where it was supposed to go.
@stevenhayes97 Sry was bit busy,
First itâs not allowing me to log in.
There seems to be issue with after database query in you script, can you check and then try again.
Itâs hard to debug the entire code. Also, I see you are using old functions such as mysql_*, which are deprecated and ruled out on newer PHP versions.
Thanks I am close. I followed all the steps and I created an email address in the database with all required things, but it just tells me âincorrect credentialsâ. The only thing I changed was the destination after correctly logging in.
Iâll investigate your issue
You cannot add people like that to the database, the passwords are hashed before they are sent to the database, so add the signup page, register the users, then delete it