Just cut out the code snippet below and save it as a .php file to the root directory
of your web server.
Be sure to substitute localhost, userid and
password for your configuration.
Load it in your browser as
http://yourhostname/filename.php
*****code snippet below***********
<head></head>
<body>
<?php
$link_id = mysql_connect "hostname",userid,password);
$select = mysql_select_db ("juggalo");
?>
<table border="0" bgcolor="#FFFFF0">
<tr>
<b>
<td>
Name</td>
<td>
Age</td>
<td>
City</td>
</tr>
<?php
$sql = "SELECT name,age,city FROM users";
if ($result = mysql_query("$sql")) {
while ($row = mysql_fetch_array ($result)) {
echo "<tr><td>".$row[name]."</td><td>".$row[age]."</td><td>".$row[city]."</td></tr>"
}
?>
</table>
</body>