Re: 5 Records per line

From: Date: Mon, 11 Mar 2002 16:19:27 +0000
Subject: Re: 5 Records per line
Groups: php.general 
Request: Send a blank email to php-general+get-88025@lists.php.net to get a copy of this message
Hi, This is the code i'm using so far : <?php $db = mysql_connect("localhost","user","pass"); mysql_select_db("mydb",$db); $result = mysql_query("SELECT * FROM sms ORDER BY ID DESC",$db); if ($myrow = mysql_fetch_array($result)) { do { echo("<b><font color=#6ed8ff>$myrow[num]</b> <br>"); } while ($myrow = mysql_fetch_array($result)); } else { echo "Sorry, no records matching your criteria were found!"; } ?> But this displays all records one per line... T. Edison Jr. ===== Rahul S. Johari (Director) ****************************************** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : abraxastech@yahoo.com Tel : 91-4546512/4522124 ******************************************* __________________________________________________ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email! http://mail.yahoo.com/

« previous php.general (#88025) next »