Results 1 to 2 of 2

Thread: [RESOLVED] Using URL string from database

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2009
    Posts
    156

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

  2. #2
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    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
  •  



Click Here to Expand Forum to Full Width