then I hardwired catid to "1"
function display_books()
{
//display all books in the array passed in
$query = "select * from books where catid='1'";
$result = mysql_query($query);
if (!$result)
return false;
$num_books = mysql_num_rows($result);
if($num_books < 1) {
echo "no books are in this category";
}
else
//do table with books
this works so the catid must not be getting passed.
BUt when I click on a link it shows in the browser filed the following
http://www.caillouette.com/CHAPTER26a/show_cat.php?catid=1
So the catid is being passed just not received.
any idea where the problem is?
Thanks