I have a dynamic url that is called $name
The url is in the form of
http://www.mysite.co.uk/gallery/index.php?album=Seals
But it also changes its form depending on were it is called from to be something like the one below
http://www.mysite.co.uk/images/index.php?album=Seals&page=2
Where the “&page=2” is added. The “2” can also be any number from 2 upwards.
Is there some code (maybe an if statement) that will look at the $name variable and strip everything from the end of the url including the “&” if it is present?