Dear experts,
Can Any body help me pls
i have the table like this
style price image
s1 500 c:\s1.jpg
s2 600 c:\s2.jpg
s3 700 c:\s3.jpg
s4 800 c:\t.jpg
i need to display out put like
3 IMAGES PER ROW
IMAGE(C:\S1.JPG) IMAGE(C:\S2.JPG) IMAGE(C:\S3.JPG)
S1 S2 S3
500 600 700
I am giving the code like this
<?php
$con= mysql_connect("localhost","root");
mysql_select_db("IMAGES",$con);
$res=mysql_query("select * from styles ");
$count=mysql_num_rows($res);
$result=ceil($count/3);
// echo $result;
for ($i=1;$i<=$result;$i++)
while($row=mysql_fetch_array($res))
{
for ($j=0;$j<=2;$j++)
echo "<img src=" .$row['IMAGE'].">";
echo "<br>";
echo $row['STYLE'];
echo "<br>";
echo $row['PRICE'];
echo "<br>";
}
mysql_close($con)
?>