Generating a table

From: Date: Thu, 14 Sep 2000 15:42:47 +0000
Subject: Generating a table
Groups: php.general 
Request: Send a blank email to php-general+get-16796@lists.php.net to get a copy of this message
I have a database that contains image filenames and a comment associated with each one. I'm trying to work out how to generate a table that will display a thumbnail of each picture with the comment underneath, 3 images per row. For the life of me I can't work out a decent logic for this! Currently I'm using: ....... <ol> <? $sql = "SELECT filename, comment, x, y FROM photos_france"; $result = mysql_query($sql,$conn); while($row = mysql_fetch_array($result)) { $x = $row['x']; $y = $row['y']; echo "<li><a onMouseOver=\"status='$row[comment]'; return true\" onMouseOut=\"status=''; return true\" onClick=\"openWindow($ </ol> ....... But I want to jazz it up a bit ;) Ollie -------------------------------------------------- Ollie Cook Mobile: +44 (7946) 057 198 PGP: http://ollie.zenox.dhs.org/pgp-key 950C 36F2 CE30 3E95 0DC3 E2A3 C3DA 59A3 53D2 9567 --------------------------------------------------

« previous php.general (#16796) next »