Sun Oct 26, 2008 7:00 pm
<?php
$host="host";
$uname="root";
$pass="password";
$connection= mysql_connect ($host, $uname, $pass);
if (!$connection) {
die ("A connection to the server could not be established!");
}
$result=mysql_select_db ("codemiles");
if (! $result) {
die ("database could not be selected");
}
echo "Database codemiles is ready for use.";
?>
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.