contact.php
Source of contact.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="EN" dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/xml; charset=utf-8" />
<title>contact.php</title>
</head>
<body>
<p>
<?php
$conn = mysql_connect("localhost","user","password") or die(mysql_error());
mysql_select_db("xfd");
$sql = "SELECT * FROM contact";
$result = mysql_query($sql, $conn) or die(mysql_error());
while($row = mysql_fetch_assoc($result)){
foreach ($row as $name => $value){
print "$name: $value <br />\n";
} // end foreach
print "<br /> \n";
} // end while
?>
</p>
</body>
</html>