Location: PHPKode > projects > Modular Site Manager > htdocs/vou-flooder/all-tags.php
<link href="stylesheet.css" rel="stylesheet" type="text/css">
<center><p id="top"><a href="javascript:history.go(-1)">Back</a></p>
<?
include "config.php";

$db = mysql_connect($db_host, $db_user, $db_pass) or die("There was an error connecting! Error:".mysql_error());
mysql_select_db($db_name, $db) or die("There was an error connecting! Error:".mysql_error());
$query = "SELECT * FROM site_shoutbox ORDER BY id DESC";
$result = mysql_query($query);
$numofrows = mysql_num_rows($result);

echo "<div class=\"shoutbox-tags-all\" align=\"center\">\n";
for($i = 0; $i < $numofrows; $i++) {
    $r=mysql_fetch_array($result); //get a row from our result set
    $username = $r["name"];
	$message = $r["message"];
	if($i % 2) { //this means if there is a remainder
        echo "<div class=\"row1\">\n";
    } else { //if there isn't a remainder we will do the else
        echo "<div class=\"row2\">\n";
    }
echo "<center><strong>$username</strong></center><br />$message<br /><a href=#top>Top</a><hr /></div>";
}
//now let's close the table and be done with it
echo "</div>\n";

mysql_close($db);
?> 
<p id="bottom"><a href="javascript:history.go(-1)">Back</a></p></center>
Return current item: Modular Site Manager