Hi I'm writing a forum in php. I have written a few pages and I can view posts and add a reply to existing posts but I can't add a new topic.
At the moment I have a topic_id and an id in the mysql table. The id is set on auto_increment so that it is unique to any post with the same topic_id which works fine for adding reply's.
Now I need to be able to add new posts which I will use a separtete file for but I can't use auto_increment again.
I just need the script to add a new number one above the highest existing (topic_id field) without using auto_increment.
Is there a way of doing this?
Thanks in advance,
Danny Hill
At the moment I have a topic_id and an id in the mysql table. The id is set on auto_increment so that it is unique to any post with the same topic_id which works fine for adding reply's.
Now I need to be able to add new posts which I will use a separtete file for but I can't use auto_increment again.
I just need the script to add a new number one above the highest existing (topic_id field) without using auto_increment.
Is there a way of doing this?
Thanks in advance,
Danny Hill