How to install the Ad Rotator

Copy the files inside "includes" (javascriptwebdesigns.com/AdRotator/includes) to your includes directory.
Fix the connect.php

Create a database called "AdRotator" with the following fields:
ID smallint(6) autoincrement
URL varchar(100)
image varchar(50)

Copy the files inside the "admin" folder to your admin folder

Create a folder in the root called "AdRotatorImages" for the uploaded images to reside (DW NOTE: this needs to be on both local and remote)

Finally copy the file "AdRotator.php" to the directory you want to call it from. I put it into the includes file because I 'include' it inside the calling page.
If "safe_query.php" is called on the 'calling page' then comment it out (default value).
The only other change needed is the "$path" variable on line 5.

CHANGES TO ADMIN FILES:

add_ad_results.php -- change the $uploaddir on line 7
delete_ad.php -- fix $path line 10
delete_ad_results.php -- fix $dir line 2