Hi,
I have a While Loop to display my MySQL info.
This makes a list of all my data, in one row.
But what I want is it to display it in a table with 5 columns so that the data is more readable.
this is my code:
while ($row = mysql_fetch_array($retd))
{
$code = $row["code"];
$name = $row["name"];
echo("<td width=150 align=center>");
echo ("<a href=../item?scode=$code><img src=pictures/$code.gif border=0 alt=Item $name</a>");
echo ("<br><a href=../item?scode=$code><span class=fs13>$name</span></a>");
echo("</td>");
}
Now I have tried to make it like this:
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
But it didn't work, since it repeated the same item for 5 times.
Does anyone know what can I change to make it work?
If you need more explaination, ask.
THANKS FOR THE HELP!!