RE: [PHP] OK SQL experts...

From: Date: Fri, 23 Apr 2004 15:42:58 +0000
Subject: RE: [PHP] OK SQL experts...
Groups: php.general 
Request: Send a blank email to php-general+get-184410@lists.php.net to get a copy of this message
[snip] SELECT * FROM 'my_table' WHERE ('field_1' LIKE '%$keyword%' OR 'field_2' LIKE '%$keyword%' OR 'field_3' LIKE '%$keyword%') AND 'status' = 'active'; [/snip] How about this? SELECT * FROM my_table WHERE (field_1 LIKE '%$keyword%' OR field_2 LIKE '%$keyword%' OR field_3 LIKE '%$keyword%') AND status = 'active';

« previous php.general (#184410) next »