Re: Making two columns

From: Date: Sat, 15 Aug 2009 22:45:10 +0000
Subject: Re: Making two columns
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-46449@lists.php.net to get a copy of this message
On Aug 15, 2009, at 2:26 PM, "Ron Piggott" <ron.php@actsministries.org> wrote:
I am needing help changing this code so the result of the mySQL query will display in two columns with the CSS tags around it. The number of records being displayed is based on the mySQL query and will increase as more poetry is added to the site. echo "<div class=\"poetry_lists_container\">\r\n"; echo "<ul class=\"lists\">\r\n"; $i=0; while ( $i < $number_of_records ) { echo "<li><a href=\"http://www.the-lords-haven-online.info/poetry/" . stripslashes(mysql_result($poems_result,$i,"pieces.reference")) . "/\">" . stripslashes(mysql_result($poems_result,$i,"pieces.title_of_piece")) . "</a></li>\r\n"; ++$i; } echo "</ul>\r\n"; echo "</div>\r\n"
Divide the total number of rows in 2 and create a second div when the halfway point is reached Bastien Sent from my iPod

« previous php.db (#46449) next »