PHP Comparing URL Text
Im trying to get a webpage to show an image depending on which keyword the user had used to get to my page. Im doing a PPC click campaign.
For example
When a user clicks my ad they got through the url
http://mysite.co.uk/?keyword={keyword}
Now what I need to do is display an image that is relevent to that keyword on my page.
e.g
http://mysite.co.uk/?keyword=shetland pony
Now I want the code to grab "shetland pony" and display a picture of one that I will have stored in the wordpress library.
But the code needs to be robust enough to understand it needs to look for that word anywhere.
eg
http://mysite.co.uk/?keyword=scottish shetland pony
Should also bring out the pony picture. If none of the keywords match my IF statements it should show nothing at all.
Hope that makes sense
Want to read my personal blog? Tashi Mortier
The 2nd Amendment, 1789 - The Original Homeland Security.
Gun control means never having to say, "I missed you."