Voir http://dev.mysql.com/doc/ refman/5.0/en/counting-rows.html
Votre requête serait donc
SELECT session_id, COUNT(*)
FROM gallery_list
GROUP BY session_id
Voir http://dev.mysql.com/doc/ refman/5.0/en/counting-rows.html
Votre requête serait donc
SELECT session_id, COUNT(*)
FROM gallery_list
GROUP BY session_id