On Tuesday 30 October 2001 12:41 pm, Anthony C. Yandell wrote: > I need help. Say I have a string coming from a page via a form .... > $search_var. I need it split up into multiple variables... > > e.g.... > > $string="These are some words" > > I want it to turn into $var1=These, $var2=are, $var3=some, $var4=some > > I'm doing this for a search script. Want it to take the input, and > search a mysql db for each of the keywords... Please e-mail a > response to [EMAIL PROTECTED]
Checkout the explode() function. -- Jason Wong Gremlins Associates www.gremlins.com.hk -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]