Skip to content

Instantly share code, notes, and snippets.

@hale
Created May 5, 2011 15:01
Show Gist options
  • Save hale/957201 to your computer and use it in GitHub Desktop.
Save hale/957201 to your computer and use it in GitHub Desktop.
<?PHP
error_reporting(0);
$con = mysql_connect("trogon.csd.abdn.ac.uk","wtstudent","DyNEDurA");
mysql_select_db("webtech", $con);
$result = mysql_query("SELECT * FROM chart");
?>
<p>
<?PHP
while($row = mysql_fetch_array($result)) {
echo $row['Artist'] . " - ". $row['Title'] . "<br />";
}
?>
</p>
<?PHP mysql_close($con); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment