table design

3 posts Page 1 of 1
Contributors
User avatar
Mark
VIP - Donator
VIP - Donator
Posts: 372
Joined: Mon Aug 17, 2009 10:35 pm

table design
Mark
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?
Code: Select all
<table>
                    <tr>
                        <td> <a href="image.php"><?php echo $row['name'] ?></a><br /></td>
                    </tr>
                </table>
http://www.mbappz.com
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4389
Joined: Tue Aug 04, 2009 1:47 am

Re: table design
CodenStuff
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:
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.
Filip
Coding Guru
Coding Guru
Posts: 833
Joined: Wed Jan 05, 2011 3:59 pm

Re: table design
Filip
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 :D
3 posts Page 1 of 1
Return to “Help & Support”