Thanks for that, I am obviously missing something on this echo statement cos nothing drops out.
I have cut the code for the mo to see what the query is:
<?php
function createSelect ( $Sname, $table, $any = 0, $select_id="" ) {
# $Sname is the name to be applied to the select control.
# $table is the name of the table to query.
# NOTE: This function assumes you are using a lookup table that has 2 fields (id,name) or you only name those 2 fields in your sql statement.
# $any 0=Without the "Any" option, 1=With the "Any" option, this is a NULL value.
# $curr_id is used to set the "SELECTED" flag on the select control.
require_once ("/home/mungojerry/public_html/phpforms/connect.inc");
$table = "clubs";
$sql = 'SELECT * FROM $table';
$sql .= 'WHERE `county` = $county';
$results = mysql_query($sql);
print($results);
echo($results);
I want to see what $results equals so I can see where to go next. I obviously need it in lala language today!!!!