Hi,
I am using PHP5 on a XAMP installation.
I am trying to extract a specific variable from a querystring (which is stored in my MySQL DB)
The format of the string is always consists of the same parameters (p, x & y), however sometimes they could be in a different order.
A sample querysting is below and I am trying to access the value of the 'p' parameter (which is always numerical) ...
http://subdir.domain.com/click?p=54321&x=12345&y=123456
so in this case im looking to print out: '54321'
I assume one way of doing this would be to get the numbers after "p=" and before the following "&", or will there be limitations on this?
It would be very helpful if you could post the php function or even the string to do this and output the 'p' variable
When I have identified the value I am writing this into an xml file.
thanks
Sam