Re: conditions in select * from
| From: | D u r r a n i | Date: | Mon, 19 Jun 2000 08:56:34 +0000 |
| Subject: | Re: conditions in select * from | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-466@lists.php.net to get a copy of this message | ||
mysql> select email from kqregister where email like "%kqhq%";
+-------------+
| email |
+-------------+
| kqhq@kq.com |
| kqhq@kq.com |
+-------------+
2 rows in set (0.01 sec)
sarahana <sarahana@cyberjunkie.com> wrote in message
news:394DBC8A.334A78F9@cyberjunkie.com...
> Hi,
> I was just wondering...
>
> Let's say a user chooses a word. And I want to select those entries in a
> database table for which the word exists as a PART of the data of the
> field name... i.e. the word may not be the data in the name field, but
> it may be a PART of the string.
>
> How can I do that?
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>