here's the code concerning... Thank-you
<?php
// Initialize the session
session_start();
// Process the search parameters.
// If a searchValue is passed as a GET parameter, use it.
if (!empty($_GET['ID']))
$catid = clean($_GET['ID'], 30);
// Load offset
if (!empty($_GET["offset"]))
$offset = clean($_GET["offset"], 5);
else
$offset = 0;
// Register the search criteria if needed
if (!session_is_registered("sessionCatID")){
session_register("sessionCatID");
}
// Save the search criteria
$_SESSION["sessionCatID"] = $catid;
// collect db data
require '/home/user/www/test/includes/lstdb.inc';
// Open a connection to the DBMS
if (!($connection = @ mysql_pconnect($hostName, $username, $password)))
showerror();
if (!mysql_select_db($databaseName, $connection))
showerror();
// Build the query using the search criteria
$query = "SELECT * FROM listings WHERE (cat_id) = ('$catid')";
// This is used to encode the search parameters for embedding
// in links to other pages of results
$browseString = "$catid=" . urlencode($catid);
$scriptName = "catman.php";
// Listing Display
// Show the user the Listings Under Thier Choosen Category
showListings($query, $connection, $offset, $scriptName, $browseString);
?>