Ive tried placing $r = rand(1,2); in the script and all, but for some reason it will rotate if I put the $r in place of the $c for counting the lines… but when it does sometimes it wont show banner at all, and sometimes it will show both banners… what do I need to do, not used to using random in anything, what do I do?
the text file goes as follows:
1,11/04/2006,2,Tusc-oh.com,firstname.lastname@example.org,330-364-5709,http://tusc-oh.com,http://tusc-oh.com/b/ads/728x90.gif,Advertise With Us!,_blank
2,11/04/2006,3,Tusc-oh.com,email@example.com,330-364-5709,http://tusc-oh.com,HTTP://localhost/b/728x90.gif,Advertise With Us!,_self
the script in which i just include in the page:
how ive been calling it from the page:
the s=728x90 is the size, also use s=120x90 to pull the 120x90 banners into page…
ADMIN EDIT: Added the [ PHP ] tags and formatted code for readability.