|
-
Jan 19th, 2000, 06:42 PM
#1
Thread Starter
New Member
I'm trying to build a message board using asp
can any one give me aprogramming model
Any Ideas or samples ?
------------------
Gasser (CesaR)
-
Jan 19th, 2000, 06:49 PM
#2
-
Jan 19th, 2000, 07:27 PM
#3
Addicted Member
Simply you can use only one table like follow sample:
ID
ParentID
Title
Message
Date
When user posted a new topic you should be insert the record:
1, 0, "New Topic", "Hello, World!", "01/01/00"
Here's the answer to new topic:
2, 1, "Replay", "Re: Hello, World!", "02/01/00"
And display the main topics by using the result of statement.
SELECT * FROM table WHERE parentid=0 ORDER BY date DESC
For answers use "WHERE parentid=XXX".
Best regards.
------------------
smalig
[email protected]
http://vbcode.webhostme.com/
-
Jan 19th, 2000, 10:59 PM
#4
Addicted Member
Here is the source code of ASP based forum
with live demo.
http://asp.superexpert.com/code/code.asp?codeid=23
Best regards.
------------------
smalig
[email protected]
http://vbcode.webhostme.com/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|