[PHP-DB] More problems with searching

2004-07-01 Thread Shiloh Madsen
After the very kind help i was given last night I have the query being built right, however the query does not work. Just to refresh, the gentlemen who had helped me suggested creation of a query that looks like: SELECT * FROM table1 where 1 or cat or dog...and so forth. Now, this query is

Re: [PHP-DB] More problems with searching

2004-07-01 Thread Justin Patrin
On Thu, 1 Jul 2004 12:28:46 -0500, Shiloh Madsen [EMAIL PROTECTED] wrote: After the very kind help i was given last night I have the query being built right, however the query does not work. Just to refresh, the gentlemen who had helped me suggested creation of a query that looks like:

Re: [PHP-DB] More problems with searching

2004-07-01 Thread Pablo M. Rivas
Hello Shiloh, Ideas?... forget the 1 $query = Select * from keyword where ; $words = explode(' ',$_GET['search_text']); foreach($words as $word) { $query .= keyword = '$word' and ; } $query=substr($query,-4); or... $query = Select * from keyword where ; $words = explode('

RE: [PHP-DB] More problems with searching

2004-07-01 Thread Ford, Mike [LSS]
On 01 July 2004 18:36, Justin Patrin wrote: On Thu, 1 Jul 2004 12:28:46 -0500, Shiloh Madsen [EMAIL PROTECTED] wrote: After the very kind help i was given last night I have the query being built right, however the query does not work. Just to refresh, the gentlemen who had helped me