Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 105,765 PHP Programmers for FREE! Ask your question and get quick answers from experts. There are 1,627 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Question about forum

 
Reply to this topicStart new topic

Question about forum

itdemo
post 13 Jul, 2008 - 04:37 PM
Post #1


New D.I.C Head

*
Joined: 16 May, 2008
Posts: 39


My Contributions


hey everyone, i have just one quick question:

i am making a forum and i just want to know if the threads and posts are saved in the MySQL database or if they are just saved in a folder

thanks,
ITDemo
User is offlineProfile CardPM

Go to the top of the page


Moonbat
post 13 Jul, 2008 - 04:46 PM
Post #2


D.I.C Head

Group Icon
Joined: 30 Jun, 2008
Posts: 100



Thanked 6 times

Dream Kudos: 400
My Contributions


They are saved in the database.
User is online!Profile CardPM

Go to the top of the page

itdemo
post 13 Jul, 2008 - 05:28 PM
Post #3


New D.I.C Head

*
Joined: 16 May, 2008
Posts: 39


My Contributions


ok cool thanks how much would a post roughly take up

Thanks,
ITDemo
User is offlineProfile CardPM

Go to the top of the page

JBrace1990
post 13 Jul, 2008 - 06:07 PM
Post #4


D.I.C Regular

Group Icon
Joined: 9 Mar, 2008
Posts: 293



Thanked 10 times

Dream Kudos: 350
My Contributions


regular size, so only a KB at most... depends on how many fields and data you have
User is online!Profile CardPM

Go to the top of the page

BetaWar
post 13 Jul, 2008 - 07:09 PM
Post #5


#include <soul.h>

Group Icon
Joined: 7 Sep, 2006
Posts: 1,011



Thanked 32 times

Dream Kudos: 675
My Contributions


Most forums take the safe approachj and say varchar 60,000 to make sure there is enough space without overflow.
User is offlineProfile CardPM

Go to the top of the page

itdemo
post 15 Jul, 2008 - 06:11 AM
Post #6


New D.I.C Head

*
Joined: 16 May, 2008
Posts: 39


My Contributions


QUOTE(BetaWar @ 13 Jul, 2008 - 07:09 PM) *

Most forums take the safe approachj and say varchar 60,000 to make sure there is enough space without overflow.


Thanks for the reply but what do you mean by "varchar 60,000". Sorry but i am still only learning php so could you please explain it more.

Thanks,
ITDemo
User is offlineProfile CardPM

Go to the top of the page

akozlik
post 15 Jul, 2008 - 09:47 AM
Post #7


D.I.C Regular

Group Icon
Joined: 25 Feb, 2008
Posts: 378



Thanked 14 times

Dream Kudos: 700
My Contributions


QUOTE(itdemo @ 15 Jul, 2008 - 09:11 AM) *

QUOTE(BetaWar @ 13 Jul, 2008 - 07:09 PM) *

Most forums take the safe approachj and say varchar 60,000 to make sure there is enough space without overflow.


Thanks for the reply but what do you mean by "varchar 60,000". Sorry but i am still only learning php so could you please explain it more.

Thanks,
ITDemo


varchar is a datatype in a mysql database. There are varchar's, int's, text's, date's, bool's, etc. They all correspond to a different type of data. It's important to know which is which to ensure your database is efficient.

Also, for varchar's, I believe one character is one byte, so 60,000 would by 60,000 bytes, or 60K. You want to keep this in mind when you're building your database. You wouldn't want to use varchar 100 for something that's going to be only 5 characters long, because it's a waste of memory.

Before you start jumping into your forum you really need to understand what you're doing. Read tutorials on database management and PHP and ensure that you fully understand the concepts you're working with before tackling such a large project. It will save you a lot of time and frustration down the road.
User is online!Profile CardPM

Go to the top of the page

itdemo
post 15 Jul, 2008 - 11:10 AM
Post #8


New D.I.C Head

*
Joined: 16 May, 2008
Posts: 39


My Contributions


thanks for the reply i will will look more into the MySQL tut that i am reading,,

Thanks,
ITDemo
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 8/21/08 02:25PM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month