Can you please tell how it is more reasonable to store comments in the database? This situation: you need to implement commenting in the "blog" and in the "Photo Album". Here are my thoughts, or make one table with fields
id-ключ text-текст коммента page_id-id страницы на которой сам коммент name-имя пользователя type-тип, "Блог", либо "Фотоальбом"
Or create two tables without the field "type" - one in the photo, the other on the blog. How will be more correct? I would like to hear the advice of professionals, but then suddenly something else will come to my mind to comment out ... every time to create a table? Or the first option will do, and immediately a tip, how to get these comments so that the speed does not leave much to be desired, maybe there is a thread
Which can pass several parameters at once