View Single Post

  #3 (permalink)  
Old 10-28-2006
builder
 
Posts: n/a
Default Re: Displaying a DB item from an RSS link

builder wrote:

>
> Okay, I understand how MySQL pulls the correct ID from your example. But
> in my situation I need to get the value of "test" (the number following
> # that the link contained) in order to write the select correctly. What
> I'm having trouble with is determining what that # value (which will
> also be the ID number in the table) that it is looking for actually is.
>
> I thought that exploding my example on the # would give me an array with
> two parts (www.mydomain.com[0] and 24[1]) but I'm obviously wrong in my
> thinking.


Found my problem. Was using $_SERVER['HTTP_REFERER'] instead of
$_SERVER['REQUEST_URI']. Turns out I had the right idea all along but
was using the wrong $_SERVER variable. I have it working properly now.
Thanks!
Reply With Quote