Hi there,
I’m going over PHP and MYSQL for dummies, and I’m relative new to this server language, anyway, please see below the code, it’s not displaying the results, I would really appreciate any help regarding this matter…….
[quote]
<?php
/*Program: Victory Health display.php
?>
<html>
<head><title>Victory</title></head>
<body>
<?php
$user=””;
$host=””;
$password=””;
$database=”test”;
$connection = mysql_connect($host,$user,$password)
or die (“couldn’t connect to server”);
$db = mysql_selectdb($database,$connection)
or die (“Couldn’t connect to server”);
$query = “SELECT * FROM tblWebData LIMIT 0, 30″;
$result = mysql_query($query)
or die(“Couldn’t execute query.”);
/
echo “<table cellspacing=’11’>”;
echo “<tr><td colspan=’1′><hr></td></tr>”;
while ($row = mysql_fetch_array($result))
{
extract($row);
echo “<tr>n
<td>$AgencyName</td>n
<td>$DescriptionofAgency</td>n
<td align=’right’></td>n
</tr>n”;
echo “<tr><td colspan=’1′><hr></td></tr>n”;
}
echo “</table>n”;
?>
</body></html>
Thanks and God Bless…..