View Single Post
  #1 (permalink)  
Old 01-02-2008, 02:29 PM
jwade_m's Avatar
jwade_m jwade_m is offline
Graphic/Web Designer
 
Join Date: Aug 2007
Location: Indiana, United States
Posts: 196
Default connecting to database

Shouldn't there be a $db name = in this code somewhere to connect to a database?



$server = "servername"; // this is the server address and port
$username = "*****"; // change this to your jimmy username
$password = "********"; // change this to your jimmy password


$link = mysql_connect ($server, $username, $password)
or die ("Could not connect");
if (!@mysql_select_db("heartland_meds", $link)) { // leave the database name as anydb for now
echo "

There has been an error. This is the error message:

";
echo "

" . mysql_error() . "

";
echo "Please Contant Your Systems Administrator with the details";
}


?>
Reply With Quote