PDA

View Full Version : Type of field to create in forum table?


N9ne
03-15-2003, 10:41 PM
I want to have a text area in each forum's edit/add screen. I know how to do that. I want to allow vbcode and htmlcode, I know how to do that too. One thing I don't know how to do or know if it's possible or not:

The field to create in the database...now a huge amount of text and code is to be entered into this text area and saved to the database, so i'm wondering, can a database store this much information? What query do I run to create the field? What details should the field hold? Type, size, etc. all that complicated stuff I never bothered to learn :p

filburt1
03-15-2003, 10:44 PM
TEXT. IIRC it can store upwards of 65,536 characters.

Actually I was wrong: http://www.mysql.com/doc/en/Column_types.html. Use LONGTEXT for obscene amounts of text (4294967295 chars *falls out of chair*).

N9ne
03-15-2003, 10:54 PM
Mega-cool, 4294967295 chars, I can work with that!

I'm running MySQL 4.0.11a on localhost, and I must say, it is great :D.

Xenon
03-16-2003, 01:07 PM
;)
mediumtext should be really enough for all ;)

N9ne
03-16-2003, 01:41 PM
What if some one has loads and loads of rules for a forum? :p

Xenon
03-16-2003, 03:16 PM
hehe, i wan't to see the user which reads these rules completly and then registers ;)

N9ne
03-16-2003, 03:20 PM
Someone who has a lot of time on their hands ;).

sparky2
03-18-2003, 02:58 AM
03-16-03 at 03:41 PM N9ne said this in Post #5 (https://vborg.vbsupport.ru/showthread.php?postid=367438#post367438)
What if some one has loads and loads of rules for a forum? :p

then conserve database space by just storing a hyperlink in the field
(a link to an external rules page) :rambo:

N9ne
03-18-2003, 02:34 PM
hehe, well I'm just trying to leave options open for users who install the hack I used the longtext in, just incase they want to put up some huge document in some forum before you can post a new thread :p.