""Johannes Janson"" <[EMAIL PROTECTED]> wrote in message
93vs9u$osj$[EMAIL PROTECTED]">news:93vs9u$osj$[EMAIL PROTECTED]...
> try this:
> $sql = "SELECT * FROM table
> WHERE town LIKE '%$search_data%' ";
>
> if ($reference != "")
> $sql .= "OR whatever";
Ah, so you can constantiate (right word?) the query?
Cool, Thanks ;)
James.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]