Location: PHPKode > projects > photoblog/mms > photoblogmms/example.php
<?
include("mms.class.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>photoblog/mms example</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
body {  
 color: #444;
}
td { border: 2px solid gray; }
table {  font: 10px Verdana, sans-serif; border: 0px solid black; }
a { text-decoration: none; color: white; }
</style>
</head>
<body>
<table>
<tr><td colspan="2" align="center"><h1>photoblog/mms</h1></td></tr>
<?
$query = "SELECT * FROM `$db_table` order by id DESC limit 5";
$result = mysql_query($query) or die(mysql_error());
while ($mms = mysql_fetch_array($result, MYSQL_ASSOC)) {
if ($mms[type] == "3gp") {
echo "<tr><td colspan=\"2\"><a href=\"$images_dir$mms[id].3gp\" title=\"click to zoom\">";
echo "<object classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" width=\"320\" height=\"200\" codebase=\"http://www.apple.com/qtactivex/qtplugin.cab\">";
echo "<param name=\"SRC\" value=\"$images_dir$mms[id].3gp\">";
echo "<param name=\"AUTOPLAY\" value=\"false\">";
echo "<param name=\"type\" value=\"video/quicktime\">";
echo "<param name=\"CONTROLLER\" value=\"true\">";
echo "<embed src=\"$images_dir$mms[id].3gp\" width=\"300\" height=\"200\" autoplay=\"false\" controller=\"true\" type=\"video/quicktime\" pluginspage=\"http://www.apple.com/quicktime/download/\">";
echo "</object>";
echo "</a></td></tr><tr>";
} else {
echo "<tr><td colspan=\"2\"><a href=\"$images_dir$mms[id].jpg\" title=\"click to zoom\">";
echo "<img alt=\"click to zoom\" width=\"300\" src=\"$images_dir$mms[id].jpg\"></a></td></tr><tr>";
}
echo "<td width=\"100\">text:</td>";
echo "<td>$mms[subject]</td></tr><tr>";
echo "<td>date:</td>";
echo "<td>$mms[date]</td></tr><tr>";
echo "<td>from:</td>";
echo "<td>$mms[fromaddress]</td></tr><tr>";
echo "<td>to:</td>";
echo "<td>$mms[toaddress]</td></tr>";
}
?>
</table>
<p>
    <a href="http://validator.w3.org/check?uri=referer"><img
        src="http://www.w3.org/Icons/valid-html401"
        alt="Valid HTML 4.01 Transitional" height="31" width="88"></a>
  </p>
	<!-- powered by photoblog/mms script by ruben at bolink.org -->
</body>
</html>
Return current item: photoblog/mms