Re: How to do this..

From: Date: Tue, 12 Nov 2002 20:16:22 +0000
Subject: Re: How to do this..
Groups: php.db 
Request: Send a blank email to php-db+get-23263@lists.php.net to get a copy of this message
put it inside a preg_split where you say that [?KR] in the brackets are the possible identifiers, and the brackets are required. that should work. i.e $chunks = preg_split( "/[?KR]/", $string[query]); THis would also work with split. Something like that might work for ya.... hth Jeff "Aaron Wolski" <aaronjw@marte To: <php-db@lists.php.net> kbiz.com> cc: Subject: [PHP-DB] How to do this.. 11/12/2002 03:01 PM Hi All, Need a little help with something. I've created a Search Engine Tracking tool that allows me to measure ROI from users that comes form search engines using specific keywords.. My problem is I forgot to capture a multiple of different "identifies" that tell me where the keyword is. To get the "identifier" I am using: $chunks = explode( '&', $string[query]); So for example.. Is this was my search query from the engine: http://www.google.com/search?hl=en <http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=%22help+me%22> &ie=UTF-8&oe=UTF-8&q=%22help+me%22 If would be entered into the Db because the keyword "identifier" is the & sign. How would I alter the above explode() code to include a bunch of "identifiers".. for example: ? K R Etc. Any thoughts? Thanks a bunch! Aaron

« previous php.db (#23263) next »