View Full Version : Post number
Hi.
I am trying to make a basic threaded message board. How would I go about giving each post a unique number like post 1 or 2 etc?
Thanks in advance
Mhtml
05-07-2003, 12:19 PM
Just slap this into your create table sql statementy thingy. There are plenty of tutorials for working with mySQL databases out there on the net.
postId integer not null auto_increment
If I remember correctly webmonkey had a tutorial on a threaded discussion board... you may want to head over and check it out. :)
... Yay, found the link for you .. :)
http://hotwired.lycos.com/webmonkey/99/31/index3a_page2.html?tw=programming
Ok I meant actually if it were possible to do that without MySQL. I am workign on a threaded message board without the use of MySQL, so can PHP do it?
Spookster
05-07-2003, 03:00 PM
Not very smart to do it without a database but you can use flat files to keep track of information such as what the last post number was and such.
Well all I need to say is that if the file is written then it is post #...the post number would be the title of the file. I know perl can do it easily, but I don't know about php.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.