Jump to content

[SOLVED] echoing recordset in colums & rows


piznac

Recommended Posts

Ok,.. I know I have seen this asked before. But after many searches and browsing the first ten pages here I am. This should be fairly simple though:

 

Say I have an image database with image path & image name. Now normally I would do something like

 

while(blah = blah){
echo "<tr><td>$row['path']</td><td>$row['name']</td></tr>";
}

 

or something like that,. kinda in a rush here (at work and this has nothing to do with any work related projects .. lol)

 

 

Now that would output something like this:

 

1.path | name

2.path | name

3.path | name

4.path | name

etc....

 

what I would like is:

 

1.path | name             2.path | name

3.path | name             4.path | name

 

 

any help?

 

Sorry if this was rushed. If it dosent make any sense I will redo it tonight. Thanks!

   

 

 

Link to comment
https://forums.phpfreaks.com/topic/52381-solved-echoing-recordset-in-colums-rows/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.