D
D
DTX2016-04-05 01:01:08
MySQL
DTX, 2016-04-05 01:01:08

PHP/SQL. Where to store user posts for the site?

Users edit posts using WYSIWYG, they need to be stored somewhere. Which way is better to go?
To store in a DB in a cell of type TEXT? Do strings need to be escaped? What advice can you give me?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
ThunderCat, 2016-04-05
@DirecTwiX

Store in the database, not in files, yes, in text.
Lines to escape - depends on your structural decisions, I would cut some of the tags , for example, inputs and js. The rest is optional.
The main thing with the base of that ... be careful, use placeholders there, other protective measures)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question