oh i see, thanks a lot for your help. Do you by anychance know the code that shows banner based on location, for example i wanna show a certain banner only to US and UK visitors.
You could use geocode to find out what country they are from based on the ip. With regards to rotating banner if you ever go further you should store the banner information in a database then select using the RAND() function. Obviously that is basic in itself, web apps today that display banner ads go as far as how many times to show during a specific time of the day and or by location etc etc.
you could use this guide to get the user's country info : http://www.pegor.com/tutorials/php-mysql-tutorials/redirecting-users-according-to-their-country-tld and make some edits to work as your banner rotator script.