Hi there,
Just one little question. Shall i put the HTML textarea content into a DB or a flat file? The textarea content can be very long (like an article or a project).
Thanks for helping. Silvio.
Hi there,
Just one little question. Shall i put the HTML textarea content into a DB or a flat file? The textarea content can be very long (like an article or a project).
Thanks for helping. Silvio.
Use text type instead of string, varchar type in db.
Note:-Text fields in mysql are limited to 65kb
EDIT
OR You should look at using MySQL's LONGBLOB or LONGTEXT data type. They can store up to 4 gigabytes of binary or textual data, respectively.
Database without a doubt.
There's not much point in flat files because when you start expanding which you will do then you have to create more files and it's easier to lose track.
Start with a database and when you grow you can do things much faster and more complex selections by using structured query language
the name says it all.
Here are some pros and cons off the top of my head (I've done it both ways with varying levels of success):
Database Pros
Database Cons
Flat File Pros
Flat File Cons