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:
id,date-start,date-stop,company-name,company-email,company-phone,to-url,to-banner,alt,target
1,11/04/2006,2,Tusc-oh.com,[email protected],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 protected],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:
[php]
[/php]
how ive been calling it from the page:
[php]
[/php]
ive tried javascript, but still get errors, cant place more than one banner on main page… using same script, and different size banners, like 120x90 in 6 different spots on page, and a 728x90 in top middle…
javascript will work, but stillhas errors, understand the php will let me have the different sizes, and more banners on a single 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.