Re: HTML tables in PHP

From: Date: Wed, 10 Apr 2002 19:33:37 +0000
Subject: Re: HTML tables in PHP
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-18407@lists.php.net to get a copy of this message
Thank you all I managed to get it worked out like this <table width=100%> <? $query = "SELECT id, name, image, quantity FROM {$config["prefix"]}_my_items WHERE uid={$session["uid"]} ORDER BY id"; $ret = mysql_query($query); while($row = mysql_fetch_array($ret)){ $image = $row['image']; $name = $row['name']; $quantity = $row['quantity']; $display_block ="<CENTER><img src=$image><br><font size = 2>$name<BR>$quantity</font></CENTER>"; echo "<td>$display_block</td>"; } echo"</table>"; ?> Jennifer --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.344 / Virus Database: 191 - Release Date: 4/2/2002

« previous php.db (#18407) next »