Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Newbie trying to create a forum
Old 01-26-2006, 11:42 AM Newbie trying to create a forum
confused's Avatar
Junior Talker

Posts: 1
Trades: 0
Hi i really hope someone can help me i am a complete newbie at asp iv never seen the lanuage until 3days ago, im having to learn it really fast and its really confusing me, I have to create a forum on a web page, i have my database set up and some coding already but im realy stuck. I have the first thread of a subject hyperlinked with the date, replies and view in a table with it and im trying to code the part where you click on the hyperlinked text and the relevant info will show.

Here is my code:

Code:
<% Option Strict On %>
<html>
 <head>
  <title>Forum</title>
 </head>
 <body>
  <%
 Dim conn
 dim rs
 Set conn=Server.CreateObject ("ADODB.Connection")
 conn.Open "Provider=sqloledb;Data Source=(LOCAL);Initial Catalog=test;Integrated Security=SSPI;"  
 Set rs=Server.CreateObject ("ADODB.recordset")
 
 rs.open "SELECT Subject, Date, Replies, Views FROM Forum_post Where ParentID is Null", conn
 %>
  <table border="1" width="80%" ID="Table1">
   <tr>
    <%for each x in rs.Fields
   response.write("<th>" & x.name & "</th>")
    next%>
   </tr>
   <%Do while not rs.eof%>
   <tr>
   <td><a href="showmessage.asp?ID="><%=rs("subject")%></a></td>
 
   <td><%Response.Write rs("Date")%></td>
   <td><%Response.Write rs("Replies")%></td>
   <td><%Response.Write rs("Views")%></td>
 
   <% rs.movenext
   loop%>
   </tr>
   </table>
 
 rs.open "Select * FROM forum_post WHERE id=" & request.querystring("id")", conn
 
 </body>
</html>
Please can someone help me with this???
confused is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-27-2006, 09:45 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Why not simply download Snitz Forum

Programming a forum is not a trivial task so you will be be very quickly overwhelmed and out of your depth. With Snitz you can read the source and learn from it at the same time.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-27-2006, 12:23 PM
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
I agree with Chirs. Since this is new to you why not download and install a forum instead of trying to write one from scratch.

phpBB is another one you can download and install for free.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Newbie trying to create a forum
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.27895 seconds with 12 queries