It is because it is a search function where a user can enter an ID, NAME and
ADDRESS to search after. If one of the fields are empty it should use the
"Morten Nielsen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am trying to make a SELECT command like this:
> $qid =db_query("
> SELECT ID, NAME, ADDRESS
> FROM users
> WHERE ID=* AND NAME='John'
> Is it somehow possible to have a wildcard, so it returns all records,
> the name is john and the ID is not important?
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php