A Tribute to Matt Kempe
Comments from those who knew him:
mysql_pconnect("vader", "srnet", "bobo");
$result = mysql_select_db("se-r-net");
if ($result <= 0) {
echo $command."
";
echo mysql_error()."
";
exit;
}
$stmt = "select matt_name,
matt_email,
matt_comments,
matt_when
from matt
order by matt_when desc";
$result = mysql_query($stmt);
if ($result == -1) {
echo "Error reading table!
\n";
echo $stmt."
";
echo mysql_error()."
";
exit;
}
if (mysql_numrows($result)) {
while ($row = mysql_fetch_array($result)) {
echo "
Name: ";
printf("%s", $row["matt_name"]);
if ( strlen($row["matt_email"])) {
echo "\n
Email: ";
printf("%s", $row["matt_email"], $row["matt_email"]);
}
$time = $row["matt_when"];
echo "\n
Date: ";
printf("%s%s-%s%s-", $time[4], $time[5], $time[6], $time[7]);
printf("%s%s%s%s\n", $time[0], $time[1], $time[2], $time[3]);
printf("%s
", $row["matt_comments"]);
echo "\n
\n\n";
}
}
?>