Jump to content

Data format help


andymike07

Recommended Posts

I'm working on a script but I'm having a little trouble with processing part of the data from the database. I wrote a script to create a set of AJax tabs with the themes of the content (Action, Thriller, Sci-F, etc) and then it gets the data from the MySQL database for each tab (theme) and displays it. I'm able to get the data from both tables without a problem, but I want to set up the script to display the last record from the database in a special way, then the rest of the results in a standard list. This is where I'm running to problems. I'm able to get the data into the standard list, but I'm unsure how to get the last record to display one way and the others (6 other records in total). Does anyone have any ideas how I can accomplish this? I have made a mockup of the layout I'm trying to achieve to better help illustrate what I'm trying to accomplish.

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/78592-data-format-help/
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.