[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?
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.