Location: PHPKode > projects > Mozart > Mozart-0.0.4/gmail.php
<?
// called from: index.php
// description: displays email from database gmail
//
include("connect.inc");
include("reqlogin.inc");
include("userprefs.inc");
mysql_close($db);
include("connect-gmail.inc");
?>
<html>
<title>Mozart: Gmail Email</title>
<body bgcolor=<? echo $bgcolor ?> text=<? echo $txtcolor ?>>
<?
include("links.inc");
?>
<center>
<br>
<b>Email Listing</b>
<br>
<?
$EmailSQL = "SELECT id, date, subject, fromfield FROM display ORDER BY date";
$Email    = mysql_query($EmailSQL);

?>
<table border=1 cellspacing=0 cellpadding=0>
<?
while ($email = mysql_fetch_array($Email)) {
   printf("<tr><td>%s</td><td><a href=\"showmail.php?emailno=%s\">%s</a></td><td>%s</td></tr>", $email["date"], $email["id"], $email["subject"], $email["fromfield"]);
}
?>
</table>
<br>
<?
include("links.inc");
?>
</body>
</html>
Return current item: Mozart