All pastes #80290 Raw Edit

MetaPhaze

public text v1 · immutable
·published 2006-07-06 08:13 UTC
rendered paste body
<html>
<head>

<link rel="stylesheet" type="text/css" href="css/mystrix.css" >
	
<title>Welcome to Mystrix
</title>
</head>

<body>
<div id="container">
<div id="header"><img src="png/mystrix33d.png" width=800>
</div>

<div id="navcontainer">

	<ul id="navlist">
		<li><a href="index.html">Home</a></td>
		<li id="active"><a href="category.php" id="current">Products</a></li>
		<li><a href="personal.html">Personal</a></li>
		<li><a href="links.html">Links</a></li>
		<li><a href="howtos.html">HowTo's</a></li>
		<li><a href="downloads.html">Downloads</a></li>
		<li><a href="journal.html">Journal</a></li>
		<li><a href="contact.html">Contact</a></li>
	</ul>
</div>
<div id="wrapper">
</div>
<div id="left">
</div>
<div id="right">
</div>
<div id="content">

<?php
include 'header.php';

// if (is_numeric($_GET['category']))
// $catnum = $_GET['category'];
$query = "SELECT cat.catname AS cat_name FROM category AS cat ORDER BY catnum";

$result = mysql_query($query) or die('Query failed: ' . mysql_error());

echo "<table>\n";
while ($line = mysql_fetch_array($result, MYSQL_ASSOC))
    {
echo "\t<tr>\n";
   foreach ($line as $key => $cat_name)
    {
	echo "<td><a href='products.php?category=$key'>$cat_name</a></td>\n";
    }
   echo "\t</tr>\n";
}
echo "</table>\n";

include 'footer.php';
?>


</div>
<div id="footer">
This site powered by<br> <img src="png/gentoo.png"><br> <a href="www.gentoo.org">Get Gentoo Linux Here!</a>
</div>
</div>
</body>

</html>