Storing php variable in database?
Posted: Thu Aug 24, 2006 12:41 pm
I want to store affiliate url's in my database but leave a variable I can change out the affiliate id (if possible), like this:
http://www.whatever.com/buy.php?affiliate=sam (where sam would be the variable)
http://www.whatever.com/affiliates/sam/index (again, with sam being the variable)
I know I could put in certain characters there and then use preg_match to find it, and replace it, but I want to see if there is a faster/better way.
http://www.whatever.com/buy.php?affiliate=sam (where sam would be the variable)
http://www.whatever.com/affiliates/sam/index (again, with sam being the variable)
I know I could put in certain characters there and then use preg_match to find it, and replace it, but I want to see if there is a faster/better way.