Re: TABLE COLUMNS

From: Date: Mon, 02 Jun 2003 07:29:35 +0000
Subject: Re: TABLE COLUMNS
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-149763@lists.php.net to get a copy of this message
probably something like: echo "<table>"; $rs=mysql_query("select * from blabla;",$conn); while($row=mysql_fetch_row($rs)) { echo "<tr>"; echo "<td>".$row[0]."</td>"; echo "<td>".$row[1]."</td>"; echo "<td>".$row[2]."</td>"; echo "<td>".$row[3]."</td>"; echo "</tr>"; } echo "</table>"; R> I'm querying a database then printing the results in a <TABLE>. What I R> want to do is format the results in a <TABLE> with 4 columns per row. R> Any suggestions? R> Thanks.

« previous php.general (#149763) next »