If you write your banner script strictly in PHP, you'll have to refresh the page manually to get the banner to change.
If you are refreshing the page, and the banner is not changing, there may be an issue with your code logic.
Posting your code here would be a good way to get started on a solution to your problem.... 😉