<form action='get_county.php' method='POST'> County: <select name='county'> <?php $query = "SELECT county_name FROM county"; $result = mysql_query($query); while ($row = mysql_fetch_array ($result)) { echo "<option value=$row[county_id]>$row[county_name]</option>"; } ?>
john47832 wrote: » lookup is yer only man dude<form action='get_county.php' method='POST'> County: <select name='county'> <?php $query = "SELECT [B]county_id, [/B]county_name FROM county"; $result = mysql_query($query); while ($row = mysql_fetch_array ($result)) { echo "<option value=$row[county_id]>$row[county_name]</option>"; } ?>
<form action='get_county.php' method='POST'> County: <select name='county'> <?php $query = "SELECT [B]county_id, [/B]county_name FROM county"; $result = mysql_query($query); while ($row = mysql_fetch_array ($result)) { echo "<option value=$row[county_id]>$row[county_name]</option>"; } ?>
if ($trimmed != '') { $query .= " jobspec like \"%$trimmed%\" OR firstname like \"%$trimmed%\" OR lastname like \"%$trimmed%\" OR position like \"%$trimmed%\" OR username like \"%$trimmed%\" OR organisation like \"%$trimmed%\""; } if ($industry != '' and $trimmed == '') { $query .= " industry = '".$industry."'"; } if ($industry != '') { $query .= " AND industry = '".$industry."'"; }
if ($trimmed != '') { $query .= " jobspec like \"%$trimmed%\" OR firstname like \"%$trimmed%\" OR lastname like \"%$trimmed%\" OR position like \"%$trimmed%\" OR username like \"%$trimmed%\" OR organisation like \"%$trimmed%\""; if($industry != '') $query .= " AND industry = '".$industry."'"; } else { if ($industry != '') $query .= " industry = '".$industry."'"; }