Hey guys,
I am getting images from what a user uploads and my problem is that when I display them they get displayed in one column going down the page. I would like them to be displayed in 2 columns though. Usually this would be a simple task for me but since there is text that goes with each picture it is throwing me off. Here is the code I wrote:
Thanks for any of your thoughts!Code:<?php $sql = "SELECT * FROM pictures WHERE username = '".$_SESSION['user']."'"; $result = mysql_query($sql) or die (mysql_error()); while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { echo "<a href='".$row['picurl']."'><img src='" . $row["picurl"] . "' width='300' height='300'/></a><br />"; echo $row["pictext"] . "<br /><br />"; } ?>



Reply With Quote
That's what genies are for, lol jk.

Bookmarks