RE: [PHP] Search/Regular Expression problem

2003-03-14 Thread Poon, Kelvin (Infomart)
THANKS I got it! -Original Message- From: Chris Hayes [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 5:45 PM To: Poon, Kelvin (Infomart); 'Chris Hayes' Cc: '[EMAIL PROTECTED]' Subject: RE: [PHP] Search/Regular Expression problem At 22:15 13-3-2003, Po

RE: [PHP] Search/Regular Expression problem

2003-03-13 Thread Chris Hayes
WHERE textfield LIKE "%word1%" OR textfield LIKE "%word2%"' -Original Message- From: Chris Hayes [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 4:02 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Se

Re: [PHP] Search/Regular Expression problem

2003-03-13 Thread Chris Hayes
$WHERE=substr($WHERE,4,strlen($WHERE); um, make that $WHERE=substr($WHERE,4,strlen($WHERE)-4; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Search/Regular Expression problem

2003-03-13 Thread Poon, Kelvin (Infomart)
Yeah my data are from a database. How do I use query to search something like that? -Original Message- From: Chris Hayes [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2003 4:02 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Search/Regular Expression problem At 21:48 13-3-2003, you

Re: [PHP] Search/Regular Expression problem

2003-03-13 Thread Chris Hayes
At 21:48 13-3-2003, you wrote: My search enginue will bring up a result IF and only if ALL of the words in $search exist in the result. For example if $search = Vax Useful Commands Then the result is only true if (eregi(".*Vax.*Useful.*Commands.*", 'possible result')) is true Are your data in a d

[PHP] Search/Regular Expression problem

2003-03-13 Thread Poon, Kelvin (Infomart)
Hi, I am sorry if this problem is too easy but I just can't figure out a way to do this. I am making a search engine and I would have the user to type a sentence to search for. Let's say it is stored in $search. My search enginue will bring up a result IF and only if ALL of the words in $search