if (!isset($user_id)) { $token = md5(uniqid(rand())); setcookie("user_id",$token,time()+86400,"/",".windoshop.com"); } include ("comptec.inc"); $connection = mysql_connect("localhost", "root", "") or die ("Couldn't connect to server."); $db = mysql_select_db("Comptec", $connection) or die ("Couldn't select database."); $get_cat = "SELECT item, details, description, price FROM Products WHERE item = \"Modems\""; $cat_result = mysql_query($get_cat) or die("Couldn't get cat."); $num_rows = mysql_numrows($cat_result); $title_string = ""; page_header ("Comptec- ", $title_string); $border = "#408080"; $bgc1 = "#FFFFCC"; $font = "#408080"; if ($num_rows == "0") { echo "
Sorry, there are no items in this category.
"; } else { echo "| TYPE | DESCRIPTION | PRICE |
| $details | $description | £ $price |