php-db | 2001072
Date: 07/25/01
- Next message: phpnet <email protected>: "Re: [PHP-DB] WHERE field = str"
- Previous message: phpnet <email protected>: "[PHP-DB] WHERE field = str"
- Maybe in reply to: phpnet <email protected>: "[PHP-DB] WHERE field = str"
- Next in thread: phpnet <email protected>: "Re: [PHP-DB] WHERE field = str"
- Reply: phpnet <email protected>: "Re: [PHP-DB] WHERE field = str"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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
- Next message: phpnet <email protected>: "Re: [PHP-DB] WHERE field = str"
- Previous message: phpnet <email protected>: "[PHP-DB] WHERE field = str"
- Maybe in reply to: phpnet <email protected>: "[PHP-DB] WHERE field = str"
- Next in thread: phpnet <email protected>: "Re: [PHP-DB] WHERE field = str"
- Reply: phpnet <email protected>: "Re: [PHP-DB] WHERE field = str"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

