First off, make this file called dbinfo.inc.php and upload it.
<?
mysql_connect('localhost', 'username', 'password', 'dbname') or die(mysql_error());
?>
Then make your script just like this:
<?
//call db information
include('dbinfo.inc.php');
//query the DB
$query = "SELECT * FROM employees";
$result = mysql_query($query) or die(mysql_error());
//find out how many rows in the query
$num = mysql_num_rows($query);
//grab query array data
$row = mysql_fetch_array($result);
//run a loop that stops when there are no rows left
for($i=0; $i<$num; $i++){
extract ($row);
echo "$name $address $city , $state $zip <br>";
}
?>