954,176 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

help to display images

[code] <?php do { ?> <?php> <?php } while ($row_books = mysql_fetch_assoc($books)); ?> [code] Displaye them in rows...I need colums of three thanks in advance

Sherlock09
Newbie Poster
1 post since Aug 2009
Reputation Points: 10
Solved Threads: 0
 

try like this

<?
$i=0;
		while($row_books=mysql_fetch_array($books))
		{ 
		if( $i<3)
		{
		?>
		<a href="imagethumb.php?s=<?php echo $row_books['Image']; ?>"><img src="images/buttonname.gif" alt="<?php echo $row_books['Title']; ?>" width="72" height="19" border="0" /></a>
		<?
		$i++;
		}
		if($i==3)
		{
		echo "<tr>";
		$i=0;
		}
						 
		}
 
?>
muralikalpana
Posting Pro
540 posts since Sep 2009
Reputation Points: 21
Solved Threads: 36
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You