RE: [PHP-DB] WHERE field = str
| From: | Boget, Chris | Date: | Wed, 25 Jul 2001 18:33:52 +0000 |
| Subject: | RE: [PHP-DB] WHERE field = str | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-10764@lists.php.net to get a copy of this message | ||
> I am trying to find a str within a field using a select statement like
> SELECT * FROM tablename WHERE fieldname has the string within it
> Is there a way to do this?
WHERE fieldname LIKE "%$string%"
Chris