|
-
Jul 10th, 2009, 02:45 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Using URL string from database
PHP Code:
$type=$GET['type'];
foreach($type as $key => $value){ $type_string = type_string."&type[$key]=".$value; }
I have managed to reconstruct my URL string (?type[0]=x&type[1]=y&type[2]=z) and place it into my SQL server.
If I call on the string how can I use its content without placing it back in the URL?
-
Jul 10th, 2009, 02:42 PM
#2
Re: Using URL string from database
well, you probably want to turn it back into an array. you could explode() it using "&" as a delimiter, then loop through the array produced and explode() every value using "=" as a delimiter. then, store them in their own array. it would be easy to filter out the "type[" and "]," too, so that your final array might look like: $myarray[0]=x.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|