dividing an mysql_fetched_array...

From: Date: Thu, 08 Feb 2001 11:37:29 +0000
Subject: dividing an mysql_fetched_array...
Groups: php.db 
Request: Send a blank email to php-db+get-6474@lists.php.net to get a copy of this message
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 indexes of 0, 1 ,2 ,3 etc etc... But, of course, I am fetching out several different columns from the db, title, ingress, date etc etc... How do I tell the script to display one the *first* title, and then 7 more... and then additional 7....? I want to avoid doing three sqls... Or is this nescessary? -trond

« previous php.db (#6474) next »