I need help with this code
I have a search form with this code
<table>
<tr>
<?
$sql = "SELECT * FROM blah WHERE keywoord LIKE '%$keywoord%' '";
$result = mysql_query($sql);
if (!mysql_num_rows($result)==0){
while($row = mysql_fetch_array($result)){
$id = $row["id"];
$photo = $row["photo"];
?>
<img src="../img/<?=$photo?>" width="150" height="200">
</td>
</tr>
</table>
</td>
<?
}
} else { echo("There are no images");
}
?>
I want the result to be shown in one row with 4 columns and then again new row with 4 columns(not more then 4 columns)
How can achieve this ?
Thanx