Based on godaddy specs, my localhost.php is actually astrec.php and this is their suggested code that I have in that file.
<?php
//Connect To Database
$hostname='astrec.db.8368397.hostedresource.com';
$username='astrec';
$password='SpaceTech2011';
$dbname='astrec';
$usertable='your_tablename';
$yourfield = 'your_field';
mysql_connect($hostname,$username, $password) OR DIE ('Unable to connect to database! Please try again later.');
mysql_select_db($dbname);
$query = 'SELECT * FROM ' . $usertable;
$result = mysql_query($query);
if($result) {
while($row = mysql_fetch_array($result)){
$name = $row[$yourfield];
echo 'Name: ' . $name;
}
}
?>