Hello, like before, I'm still trying to make a register page with login and logout.
Here's the link to my server (If I'm not allowed to share links please remind me.)
http://fifarulez.dyndns.org/hacks4all.wapzan.com/registration/
After the registration it will give 2 warnings.
( ! ) Warning: mysql_query() [function.mysql-query]: Access denied for user ''@'localhost' (using password: NO) in C:\wamp\www\hacks4all.wapzan.com\registration\register.php on line 40
and
( ! ) Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\wamp\www\hacks4all.wapzan.com\registration\register.php on line 40
I tried to fix it by changing the code in:
// dbConfig.php is a file that contains your
// database connection information. This
// tutorial assumes a connection is made from
// this existing file.
include ("dbConfig.php");
by
// Replace the variable values below
// with your specific database information.
$host = "localhost";
$user = "root";
$pass = "CENSORED";
$db = "CENDORED";
// This part sets up the connection to the
// database (so you don't need to reopen the connection
// again on the same page).
$ms = mysql_pconnect($host, $user, $pass);
if ( !$ms )
{
echo "Error connecting to database.\n";
}
// Then you need to make sure the database you want
// is selected.
mysql_select_db($db);
When I do that the only thing I see is:
Error: User not added to database.
ps. I think that it's my WAMP server that isn't fully on since it's yellow, probably SQL is offline?
Thanks in advance! :)