<?php
@session_start();
//to connect to server
$dbhost = 'localhost';
$dbname = 'football';
$dbuser = 'jim';
$dbpass = '12345';
$dbh=mysql_connect ("localhost", "football", "12345") or die ('I cannot connect to the database because: ' . mysql_error());
//to connect to local system
$dbname = 'football';
mysql_select_db ("football");
//mysql_connect('localhost','','') or die("Error in connecting database :".mysql_error());
//mysql_select_db('playstation2tournament') or die("Error in selecting db :".mysql_error());
?>
//changing to playstation2tournament database
$link = mysql_connect('localhost','jim','12345');
$dbname = 'football';
mysql_select_db('football');
<?php
@session_start();
//to connect to server
$dbh=mysql_connect ("localhost", "jim", "12345") or die ('I cannot connect to the database because: ' . mysql_error());
//to connect to local system
mysql_select_db ("football");
//mysql_connect('localhost','','') or die("Error in connecting database :".mysql_error());
//mysql_select_db('football') or die("Error in selecting db :".mysql_error());
?>
mysql_select_db ("football");
mysql_select_db ("football") or die ('There is a problem with the selected database: ' . mysql_error());