cant get user names to display at top of picture
Posted: Thu Apr 13, 2006 5:47 pm
Hi, im trying to display pictures side by side in a table with the picture owners name above them using the following code:
It displays the pictures fine but the names are along side the pictures instead of above any ideas why this is happening ? thanks, mark.
Code: Select all
$tmp=mysql_query("SELECT id,fname,pic1 FROM ".C_MYSQL_MEMBERS." WHERE fname = '".$link."' AND pic1 <> 0 limit 1");
while($i=mysql_fetch_array($tmp)) {
$name = (trim($i['fname']) == '') ? $i['id'] : $i['fname'];
$pic = ($i['pic1']); ?>
<a href="view.php?l=<?=$l;?>&id=<?=$i['id'];?>"><b><?=$name;?></b></a>
<a href="../view.php?l=<?=$l;?>&id=<?=$i['id'];?>"><img src=/members/uploads/<?="$pic";?> border="0" width="100"></a><? }}
?>