It looks like you're new here. If you want to get involved, click one of these buttons!
Hi. I have tried this on another computer and it worked but it does not work when I switch computer. It would be great if anyone help me to resolve this problem. I have been trying to solve this problem for hours but to no avail
The error code is this database connection error
I used the test branches to test where the program would end and realise it will not get pass this line mysql_connect('localhost', 'root', 'root') or die ('database connection error');
Perhaps it is my localhost problem. I been using port 90 and I tried substituting localhost to localhost:90 but does not work. Someone please enlightened me.
Part of my code session_start();
mysql_connect('localhost', 'root', 'root') or die ('database connection error'); mysql_select_db('cupcakes') or die(mysql_error());
$loginprocess = mysql_query("SELECT * FROM register WHERE username = '$username' and password = '$password'"); $loginstatus = mysql_num_rows($loginprocess); if ($loginstatus != 1)........