connect.php
<?php
session_start();
connect.php
$server = 'localhost';
$username = 'mysqlusename';
$password = 'mysqlpassword';
$database = 'mysqldatabase';
if(!mysql_connect($server, $username, $password))
{
exit('Error: could not establish database connection');
}
if(!mysql_select_db($database))
{
exit('Error: could not select the database');
}
?>
Comments