table design
3 posts
Page 1 of 1
can anyone help me with the design of a table for my categories for my images?
I tried this code but still dosent seem to want to work.
all it does is put them under each other?
I tried this code but still dosent seem to want to work.
all it does is put them under each other?
Code: Select all
<table>
<tr>
<td> <a href="image.php"><?php echo $row['name'] ?></a><br /></td>
</tr>
</table>
What do you mean by puts them under each other?
If you're doing a WHILE type of loop in PHP to output it then it should be similar to this:
If you're doing a WHILE type of loop in PHP to output it then it should be similar to this:
Code: Select all
<table>
(PHP code loop here 'while')
<tr>
<td> <a href="image.php"><?php echo $row['name'] ?></a><br /></td>
</tr>
(End PHP loop)
</table>
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
Code: Select all
<?php foreach($data_array as $d) { ?>
<tr>
<td> <a href="image.php"><?php echo $d['name']; ?></a><br /></td>
</tr>
<? } ?>
CodenStuff wrote:Nope, it's just your sick and dirty mind. You sick twisted warped little pervo![]()
3 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023