Re: [PHP] Creating mySql search feature.....

2002-11-24 Thread Cookra
> foreach($word as $str) { > $cond .= " $S_From LIKE '%$str%' AND "; // replace AND with OR if > you want ANY word > } > // remove trailing AND(last 4 chars) or OR(last 3 chars) > $cond = substr($cond, 0, strlen($cond) - 4); // this is for AND > > And

[PHP] Stripslashes through an array.........

2002-11-24 Thread Cookra
Hi all is it possible to stripslahes from this query? $results = mysql_query("SELECT * FROM $DB_Table_A ORDER BY name ASC LIMIT $page, $limit"); while ($data = (mysql_fetch_array($results))) { //-->< something here would be nice } Thanks.. Regards R -- PHP General Mailing List

[PHP] Creating mySql search feature.....

2002-11-24 Thread Cookra
Hi all, Need a little help here been at this for a while now... I have a database holding a table which in turn holds a collection of fields I need to search. Ive set up search form that sends the variable $S_For and $S_From, these variables represent the following: $S_For = the search keywo