"; include("dbstuff.inc"); $cxn = mysqli_connect($host,$user,$passwd,$dbname) or die ("couldn't connect to server"); $query = "SELECT DISTINCT cat FROM Product ORDER BY cat"; $result = mysqli_query($cxn,$query) or die ("Couldn't execute query."); echo "

Which products are you interested in? (Check as many as you want)

\n"; /* create form containing checkboxes */ echo "
Products
"; echo "

\n"; ?>