473,385 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Add forum feature php application

268 100+
hai friends


I need to add the forum featue to my application.I need some ideas ,suggestion how to develope the forum featute or any sample code avialbele .Please help me
__________________
Thanks
Vssp
Sep 22 '06 #1
1 1495
tbb9216
16
i would approach this pretty much as you would a shopping cart.

instead of storing mass amounts of info in the db, store references to threads in the db.

example:

CREATE TABLE `thread`
(`threadId` int(11) NOT NULL PRIMARY KEY auto_increment,
`threadTitle` varchar(255) not null,
`threadDate` date());

CREATE TABLE `thread_messages`
(`messageId` int(11) NOT NULL PRIMARY KEY auto_increment,
`messageThread` int(11) not null,
`messageDate` date(),
`messageData` TEXT,
`messageUser` varchar(255) not null);

to read thread #17:

SELECT t.threadTitle, t.threadDate,
m.messageId, m.messageThread,
m.messageDate, m.messageData,
m.messageUser
FROM thread t, thread_messages m
WHERE t.threadId = '17'
AND t.threadId = m.messageThread
ORDER BY m.messageDate
ASC

this will grab all posts that correspond to thread #17 and put them in a query for you to do whatever with. obviously variables can be users instead of constants, such as the threadId = 17 and what not. let me know if you need more info about any specific detail.

good luck, let me know how it works out,

-tim
Sep 22 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: sgershon | last post by:
Hi. I am looking for a script that act as a Simple Forum, with the possibility of admin and configuration setting. Can use MySQL. My problem is that the scripts I've found so far are hard to...
5
by: Bill | last post by:
I'm looking for an ASP-based forum for a community of professionals. I like YABB: http://www.yabbforum.com/community/ It's pretty full featured. I like the built-in instant messaging, calendar,...
14
by: Matt | last post by:
Any progammers looking for a killer app to develop? How about a voice enabled forum? One of the most powerful, exciting, and engrossing experiences on the Internet is the Forum. The first great...
3
by: Tony Johansson | last post by:
Hello! We have MFC application from VC6. Assume we compile the MFC application in VC8. Does anything special be done to the MFC application accept remove all the errors before being able to use...
1
by: Neil Stevens | last post by:
Hi, I am designing an internet forum in ASP.NET, what i have at present is a forum that uses either and Access, MSSQL Server, or MySQL Server database depending on how the forum is setup. My...
5
by: Adotek | last post by:
Hi All, I am looking to add a forum to our PHP/mySQL website. I have decided to get an off-the-shelf solution as it seems there are plently of excellent packages available - No point in...
1
by: ThunderMusic | last post by:
Hi, I'm currently developping a forum for my web site and I wanted to include a "read tag" feature to it. This forum stores it's data in a SQL Server 2005 database. I've seen on my forums that...
4
by: =?Utf-8?B?SmVmZkRvdE5ldA==?= | last post by:
I’m interested in setting up an Intranet blog/forum application for work. The idea is to have people in the office blog about projects they are working on and problems they are facing. We will...
10
by: Conrad Lender | last post by:
In a recent thread in this group, I said that in some cases object detection and feature tests weren't sufficient in the development of cross-browser applications, and that there were situations...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.