Re: conditions in select * from
| From: | Meir Kriheli - MKsoft | Date: | Mon, 19 Jun 2000 08:29:39 +0000 |
| Subject: | Re: conditions in select * from | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-462@lists.php.net to get a copy of this message | ||
$query = 'select * from table_name where the_field_name like
"%the_word%"'';
% in sql is like * in file names.
Meir Kriheli
MKsoft computer systems
----- Original Message -----
From: "sarahana" <sarahana@cyberjunkie.com>
To: <php-db@lists.php.net>
Sent: Monday, June 19, 2000 8:24 AM
Subject: [PHP-DB] conditions in select * from
> 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
>
>