Re: Displaying Records

From: Date: Mon, 21 Aug 2000 17:25:03 +0000
Subject: Re: Displaying Records
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12772@lists.php.net to get a copy of this message
while(mysql_num_rows($result)) { // start your html table for($i=0; $i<3; $i++) { if ($mysql_num_rows($result) { // Get your row of data ($row = mysql_fetch_array) // format your html how you want it... } } // end your html table } -jeremy brand _______________________________________________________________________ GnuPG Fingerprint: 9F5E 95E0 1CC2 E054 84EA 6099 8ACD 9DBA D2C0 5EA9 _ http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more __ On Mon, 21 Aug 2000, Phillip S. Baker wrote: > Date: Mon, 21 Aug 2000 10:12:44 -0700 > From: Phillip S. Baker <phillip@wordsandimages.com> > To: php-general@lists.php.net > Subject: [PHP] Displaying Records > > Greetings All, > > I am pulling records for a MySQl database. > Simply displaying them using a Do while statement. > > However what I would like to to display three records horizontally in > a table then drop down to a new table row and display the next three > records, etc until all the records are displayed. > > How do I do this. > > Thanks > > -- > > Phillip S. Baker > > phillip@wordsandimages.com > Words & Images, Inc. > 1535 Seabright Avenue, Suite 100, Santa Cruz, CA 95062 > Direct Line (831) 420-2641 / Fax (831) 458-0808 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#12772) next »