Jump to content

Tables Next to Each Other


Warptweet

Recommended Posts

I use this code to make a table with two rows, and four columns, all together.

 

<tr>
<td>top</td>
<td>top</td>
<td>top</td>
<td>top</td>
</tr>
<tr>
<td>bottom</td>
<td>bottom</td>
<td>bottom</td>
<td>bottom</td>
</tr>

 

How would I make it so that for each column, it displays one of the 4 most recent rows in my database? The most recent rows in my database can be determined because the row with the highest id (AUTO_INCREMENT) is the newest one.

 

I need to select the most recent 4, and display the most recent four on those tables.

For "top", I need it to display " . $row['upload_preview'] . " and for the "bottom" I need it to display " . $row['upload_name'] . "

 

Any ideas how to accomplish this? Thanks for any help!

Link to comment
https://forums.phpfreaks.com/topic/47183-tables-next-to-each-other/
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.