Hi i'm boopathi. i'm working on a php gallery i'm displaying image from mysql db using php. but my images are diplay in one by one. which means i'st image in ist row and iind image in iind row. but i want to display my image as 3 or 4 per row. what coding changes i will do. my php code belows.
<?php
include_once("config.php");
$result=mysql_query("SELECT * FROM images");
while($res=mysql_fetch_array($result))
{
?>
<table width='200'>
<tr>
<td><?php echo"<a href='indimage.php?imageid=$res[imageid]'>"?><?php echo $res['imagename']?><?php echo"</a>"?></td>
</tr>
<tr>
<td>
<div id="news-image">
<?php echo"<a href='indimage.php?imageid=$res[imageid]'>"?>
<?php echo'<img src='.$res['image'].' width="250" height="100">'?><?php echo"</a>"?>
</div>
</td>
</tr>
</table>
<?php
}
?>