- Joined
- Mar 28, 2009
- Messages
- 5
- Reaction score
- 1
Like the title says, I keep getting that error while trying to create a user on my website.. Hoping you guys can help out. (Note that you may have to use very simple terms, as I am not a god of PHP/MySQL, I actually just started trying to learn PHP)
Im following this guide: http://www.trap17.com/index.php/php-simple-login-tutorial_t7887.html
My website I'm trying to register on: http://coregaming.byethost9.com/register.php?
And here's my dbConfig.php: (blocked out password)
I'm assuming it's because the db host is localhost and it's not hosted on my computer.. I really just don't know.
Im following this guide: http://www.trap17.com/index.php/php-simple-login-tutorial_t7887.html
My website I'm trying to register on: http://coregaming.byethost9.com/register.php?
And here's my dbConfig.php: (blocked out password)
Code:
<?
// Replace the variable values below
// with your specific database information.
$host = "localhost";
$user = "b9_3354766";
$pass = "********";
$db = "b9_3354766_index";
// 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);
?>
I'm assuming it's because the db host is localhost and it's not hosted on my computer.. I really just don't know.