Login   Register  
PHP Classes
elePHPant
Icontem

Ad Rotator

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Ad Rotator  >  All threads  >  Ad Rotator  >  (Un) Subscribe thread alerts  
Subject:Ad Rotator
Summary:Getting an error where there should not be one.
Messages:2
Author:Dave
Date:2007-02-19 22:25:28
Update:2007-02-20 07:07:15
 

  1. Ad Rotator   Reply   Report abuse  
Picture of Dave
Dave
2007-02-19 22:25:28
I am getting an error that there are not enough images in the array to rotate.
You can see the image and link arrays at this page http://www.sailinganarchy.com/php/test_ads.php

If I specify more that 1 the error comes up. Currently I have the line
$o->rotate(5);
commented out so I donot get the error.

You can see from my page that I am getting data.

This stuff is getting real frustrating.

There must be an easy way to rotate ads in a vertical format from data taken from a table.

  2. Re: Ad Rotator   Reply   Report abuse  
Picture of Vedanta Barooah
Vedanta Barooah
2007-02-20 07:07:15 - In reply to message 1 from Dave
are you trying to display more number of images than in the actual array?... try this (in case you use mysql):

$o->rotate(mysql_num_rows($rs));