Jump to content

database_connect.php help


knox

Recommended Posts

Something like
[code]
$dbc = @ mysql_connect(DB_HOST, DB_USER, DB_PASSWORD) or die ("Could not connect to mysql:" . mysql_error());
@ mysql_select_db(DB_NAME) or die ("Could not select the database" . mysql_error());
[/code]

where DB_HOST is usually localhost, DB_USER, DB_PASSWORD are the username and password needed to connect, and DB_NAME is the name of your database.

HTH.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.