Re: [PHP-DB] dividing an mysql_fetched_array...

2001-02-08 Thread Johannes Janson
Hi,, no 3 sql isn't neccessary. you could put an $i = 0 before the whlie loop and increment it at the end of it. Thus you could do it with an if.-caluse: if ($i=0) { ehco "ad"; }. Same thing for ads which go between newsarticle 8 and 9. Good luck otis ""Trond Erling Hundal"" <[EMAIL PROTECTED]

[PHP-DB] dividing an mysql_fetched_array...

2001-02-08 Thread Trond Erling Hundal
Hi there... I was thinking of dividing a front page displaying 15 newsarticles into three parts. The first part, will contain only one article... Below the first article there will be an ad, before to columns suceeding this banner displays 2*7 articles... how do I do this? I know the array has i