All pastes #80168 Raw Edit

MetaPhaze

public text v1 · immutable
·published 2006-07-06 04:07 UTC
rendered paste body
<?php
include 'header.php';

// if (is_numeric($_GET['category']))
// $catnum = $_GET['category'];
$query = "SELECT * FROM category"

$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 $col_value) {
       echo "\t\t<td>$col_value</td>\n";