Reply to Re: banner rotation script

Your name:

Reply:


Posted by Nospam on 07/26/06 16:20

"Dennis de Wit" <newsgroups@tomatensaus.com> wrote in message
news:44c4c2e0$0$31647$e4fe514c@news.xs4all.nl...
> Nospam wrote:
> > I am trying to get this banner rotation script to work but all I am
seeing
> > are totally blank lines:
> >
> > <?
> > $bannerCounter =1;
> >
> > $bannerCode[$bannerCounter] = "<a href=\"http://www.example.com/site1\"
> > target=\"_top"><iframe src=\"http://www.example.com/site1\"
> > marginwidth=\"0\" marginheight=\"0\" width=\"120\" height=\"150\"
border="0"
> > frameborder="0" style="border:none;" scrolling="no"> </iframe></a>\";
> > $bannerCounter++;
> >
> > $bannerCode[$bannerCounter] = "<a href=\"http://www.example.com/site2\"
> > target=\"_top\"><img src=\"http://www.example.com/site2\" width=\"120\"
> > height=\"600\" alt=\"null\" border=\"0\"/></a> ";
> > $bannerCounter++;
> >
> > $bannerCode[$bannerCounter] = "<a href=\"http://www.example.com/site3\"
> > target=\"_top\"><img src=\"www.example.com/site3\" width=\"468\"
> > height=\"60\" alt=\"site 3\" border=\"0\"/></a>";
> > $bannerCounter++;
> >
> > $bannerCode[$bannerCounter] = "<a href=\"<a
> > href=\"http://www.example.com/site4\" target=\"_top\"><img
> > src=\"http://www.example.com/site4\" width=\"600\" height=\"500\"
> > alt=\"null\" border=\"0\"/></a>";
> > $bannerCounter++;
> >
> >
> >
> >
> >
> > $bannerAdTotals = $bannerCounter - 1;
> > if($bannerAdTotals>1)
> > {
> > mt_srand((double)microtime() * 1234567);
> > $bannerPicked = mt_rand(1, $bannerAdTotals);
> > }
> > else
> > {
> > $bannerPicked = 1;
> > }
> > $bannerAd = $bannerCode[$bannerPicked];
> > ?>
> > $bannerAd = str_replace('"', '\'', $bannerAd);
> > print("document.write(\"$bannerAd\")");
> >
> >
> >
> >
>
> Try turning on error reporting to see if you generate an error somewhere
> (add the line error_reporting(E_ALL) to the top of your php code)
>
> Probably you are recalling an unexistant variable or index.
>
> good luck.
>
> Dennis

I am getting an unexpected T string on this line:

src=\"http://rcm-uk.site.co.uk/e/cm?t=site-21&o=2&p=6&l=bn1&mode=video-games
-uk&browse=403718&=1&fc1=&lt1=&lc1=&bg1=&f=ifr\"

is there something wrong in the above code?

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация