Hi thanks for spotting that silly error i made but still no joy
here is the drop down menu page
<html>
<head>
</head>
<body>
<form action="resultstest.php" method="post">
<?php
mysql_connect('localhost', 'phpuser', 'phpuser03')or die ("Database connection error");
mysql_select_db('booking');
//gets all the available events from the events table.
$event_categories=mysql_query("SELECT * FROM event_categories ")
OR DIE("Unable to find events. Error: ".mysql_error());
print("<select name=\"category\" size=1>\n");
print("<option value=\"b\">Select");
print("<option value=\"b\">-----");
while($row = mysql_fetch_array ($event_categories))
{
print("<option value=\"$row[categoryID]\">$row[category] \n");
}
print("</select>\n");
?>
<input type="submit" value="Go">
</form>
</body>
</html>
here is the the page i would like to display data on
<html>
<head> </head>
<body>
<?php
$categoryID=$_POST['categoryID'];
$categoryID = addslashes($categoryID);
mysql_connect("localhost","phpuser","phpuser03") or die ("Database connection error");
mysql_select_db('booking');
$sql = "SELECT * FROM event WHERE categoryID='".$_GET['category']."'";
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result)) {
print_r($row);
}
?>
</body>
</html>