<head>
<title>Articles</title>
</head>
<body>
<?php include("templates/header.htm"); ?>
<?php
require("admins/config.php");
$link = mysql_pconnect( "localhost", $user, $pass );
mysql_select_db( $db, $link );
if ( $id == "" ) {
echo <<<myHTML
<br><br><br><br>
<table width="500" border="0" align="center" cellpadding="5" cellspacing="0">
<tr bgcolor="#FFFFFF">
<td width="100" valign="top" bgcolor="#FFFFFF"><p align="right"> <p></td>
<td width="10" bgcolor="#FFFFFF"> </td>
<td width="490" valign="top" bgcolor="#FFFFFF"><p align="left">review title</p></td>
</tr>
myHTML;
if ( $category == "1" ) {
//if category is hardware
}
if ( $category == "2") {
//if category is software
}
if ( $category == "3" ) {
//if category is general gaming
}
if ( $category == "4") {
//if category is win9x/ME issues
}
if ( $category == "5") {
//if category is windows NT/2000/XP issues
}
if ( $category == "6" ) {
//if category is networking
}
if ( $category == "7") {
//if category is cd burning
$result = mysql_query("SELECT * FROM reviews ORDER BY title");
while(list($id, $title, $group) = mysql_fetch_row($result)){
if ( $group == "7" ) {
echo <<<myHTML
<tr bgcolor="#FFFFFF">
<td width="100"><p align="right"> </p></td>
<td width="10"> </td>
<td width="490"><a href=articles.php?id=$id>$title</a></td>
</tr>
myHTML;
}
}
if ( $category == "8") {
//if category is security
}
if ( $category == "9" ) {
//if category is Game Demos
}
else {
//if an invalid category is displayed
}
echo<<<myHTML
</table>
myHTML;
}
mysql_close($link);
include("templates/footer.htm");
?>
</body>
Didnt test this. I took out the { on line 66. See if it works. Lata
Microblows