I am trying to create a photo album system php and mysql I have this code for the list of all photo albums :
Select Album. *, Count (pictures.id) AS Countpic Leave the pictures left from the album (albums.id = pictures.album_id) GROUP BY Album Thread (album images thumb_id si) and also photo albums with the number of all the pictures assigned Want the title list of Thank you
Do you know how to select thumb_ID and also how to determine the number of pictures in the album using a selection
thanks < / P>
Adding group_concat (pictures.thumb_id)
to selection code What do you want ?
Comments
Post a Comment