gilbertsavier
08-06-2009, 03:39 AM
Hi,
Going to try to explain this as best I can. I have a bunch of stuff in a database and I need to display this info within a table. This isn't a problem at all but, I need it to only display * td tags per line and then move on to the row.
so i need it to do :
code:
<table>
<tr>
<td>My First Row</td>
<td>My First Row 2</td>
<td>My First Row *</td>
</tr>
<tr>
<td>My Second Row</td>
<td>My Second Row 2</td>
<td>My Second Row *</td>
</tr>
</table>
and continue to do this through every entry in the database table.
so I have something like this that will display the info:
code:
for ($i = *; $i <= $num; $i++){
$c****Array = mysql_fetch_array($c****Result);
$c****Name = $c****Array['name'];
$c****Description = $c****Array['description'];
$c****Image = $c****Array['image'];
echo "<tr>";
echo "<td>";
echo "<img src=\"images/catalog/ottomans/thumbs/$c****Image\" width=\"*57\" height=\"*47\" />";
echo "<br />";
echo $c****Name;
echo "</td>";
echo "</tr>";
}
Going to try to explain this as best I can. I have a bunch of stuff in a database and I need to display this info within a table. This isn't a problem at all but, I need it to only display * td tags per line and then move on to the row.
so i need it to do :
code:
<table>
<tr>
<td>My First Row</td>
<td>My First Row 2</td>
<td>My First Row *</td>
</tr>
<tr>
<td>My Second Row</td>
<td>My Second Row 2</td>
<td>My Second Row *</td>
</tr>
</table>
and continue to do this through every entry in the database table.
so I have something like this that will display the info:
code:
for ($i = *; $i <= $num; $i++){
$c****Array = mysql_fetch_array($c****Result);
$c****Name = $c****Array['name'];
$c****Description = $c****Array['description'];
$c****Image = $c****Array['image'];
echo "<tr>";
echo "<td>";
echo "<img src=\"images/catalog/ottomans/thumbs/$c****Image\" width=\"*57\" height=\"*47\" />";
echo "<br />";
echo $c****Name;
echo "</td>";
echo "</tr>";
}