So here is my problem. I have developed guestbook's and comment systems before, however they were simply used on one page and used the auto increment feature to seperate enteries. Each entry was stored on a seperate row in my database and they were organized by an array when called.
My current project uses a template and creates a new page for each "id" and the page is populated by the variables from that row. So basically all of my variables have to be stored in the same row.
I now cannot figure out how to create a comment system that stores each entry on the same row as all of the other features on my pages, because the auto increment "id" is already being used. I tried changing it to "commentid" and auto incrementing that, however this created new rows in my table, and that cant happen.
An example of my format would be path/profile.php?id=1, so each page is determined by the id.
Does anyone have any ideas or suggestions as to how I could acheive a comment system that stores each entry in the same row? I have seen this done on many websites, but can find no guides or code examples for it.
Any help is greatly apreciated.