I have recently set up a SME6.x server and have created a database in MySQL. I now wish to be able to connect to the database. Can anyone tell me what the standard connection details would be for connecting using mysql_connect() in PHP. I have the following code:
define ('DB_HOST', 'localhost');
define ('DB_NAME', 'intranet');
define ('DB_USER', 'root');
define ('DB_PASS', 'password');
// Make the connnection and then select the database.
$dbc = @mysql_connect (DB_HOST, DB_USER, DB_PASS) OR die ('Could not connect to MySQL: ' . mysql_error() );
mysql_select_db (DB_NAME) OR die ('Could not select the database: ' . mysql_error() );
Cheers.