MySQL Table Connecting
<?php
$db_host = "localhost";
$db_username = "aaaaaaaa";
$db_password = "aaaaaa";
$db = "aaaaaaa";
mysql_connect( $db_host, $db_username, $db_password )
or die( "Error! Could not connect to database: " . mysql_error() );
mysql_select_db( $db )
or die( "Error! Could not select the database: " . mysql_error() );
?>
<?php
$db_host = "localhost";
$db_username = "aaaaaaaa";
$db_password = "aaaaaa";
$db = "aaaaaaa";
mysql_connect( $db_host, $db_username, $db_password )
or die( "Error! Could not connect to database: " . mysql_error() );
mysql_select_db( $db )
or die( "Error! Could not select the database: " . mysql_error() );
?>
No comments:
Post a Comment