Jump to content

forum posts / sql TEXT


MemphiS

Recommended Posts

When ive ste the mysql table row to TEXT does this mean it will only read any saved data in it as text? just asking as i dont wish to have an sql injection leak in my forum posts. Currently i validate most the characters but ones like & , ' " ; i just default it to an error and dont save it in the db.

Link to comment
Share on other sites

Text is basically any character of your character Unicode.

 

Normal text fields hold up to 65,000 bytes, if it exceeds it will truncate itself.

MEDIUMTEXT holds up to 16 million characters.

LONGTEXT holds up to 4 trillion characters.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.