Jump to content

Format SQL to display data in a group?


influenceuk

Recommended Posts

Can any one tell me if there is a way to display data from a MySQL DB in groups?

 

For example:

 

May:

Item 1            1/05/2007

Item 2            2/05/2007

Item 3            3/05/2007

 

June:

Item 4            1/06/2007

Item 5            2/06/2007

Item 6            3/06/2007

 

And so on...

 

Obviously i would be after having a title of that current month etc. But would need the data to go and update on its own, so once may has gone, June would be he first month, if you see what i mean?

 

Any help would be great cheers :)

 

 

Link to comment
https://forums.phpfreaks.com/topic/52743-format-sql-to-display-data-in-a-group/
Share on other sites

Barand,

I tried it however i could not get it to work :(

 

Basically i have this table set up...

Title Studio Release

 

Now i wanna get try get them displayed in months as stated above.

I saw what you had given the other guy worked for him, i could just not work out how to mod the code for my use?

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.