Hi!!!!
I need to create a table of 4 columns x n rows. The number of row will
depend on the number of images for that specific page.
I think that I have to use de mod function saying that if (number of
image mod 4 equal 0 then start another row)
Well....first thing...I find the function fmod in the help that I
think that will be useful.
I wrote this small code, but it does not work
while($row = mysql_fetch_arr ay($respuesta))
{
echo('<td width=15% align="center"> <img src=" ' .$row["url"]. '
"></td>');
$i++;
if (fmod ($i,4)==0)
{
<tr>
}
}
Anyone can help me?
Thanks in advance
Ezequiel
I need to create a table of 4 columns x n rows. The number of row will
depend on the number of images for that specific page.
I think that I have to use de mod function saying that if (number of
image mod 4 equal 0 then start another row)
Well....first thing...I find the function fmod in the help that I
think that will be useful.
I wrote this small code, but it does not work
while($row = mysql_fetch_arr ay($respuesta))
{
echo('<td width=15% align="center"> <img src=" ' .$row["url"]. '
"></td>');
$i++;
if (fmod ($i,4)==0)
{
<tr>
}
}
Anyone can help me?
Thanks in advance
Ezequiel
Comment