Jump to content

populating a javascript accordion


kammage

Recommended Posts

Here's the situation:

 

My webpage displays announcements that have been stored in my database. The announcements are divided into three categories: General Information, Software Updates, New Software. On a regular basis, I add new announcements. So basically, this is how my javascript accordion is set up (where each "-->" is a sub-accordion)

 

General Info

-->Date

---->Content

Software Updates

-->Date

---->Content

New Software

-->Date

---->Content

 

The code behind this process uses PHP to access a MySQL database. I want to use a javascript accordion to organize the three categories. I was wondering if there was a way to automatically make a new accordion container automatically, each time I add a new announcement. Since there will constantly be new announcements, I don't want to have to hard code each new announcement into the accordion.

 

Any help would be greatly appreciated!!

Link to comment
https://forums.phpfreaks.com/topic/104788-populating-a-javascript-accordion/
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.