Hello.
Suppose a bad user typed in input, with quotes and dots:
ООО "Тазики и Ромашки". Мы работаем как рабы
That wonders if there are pitfalls, in terms of such phrases with quotes and dots, and how to avoid it?
Hello.
Suppose a bad user typed in input, with quotes and dots:
ООО "Тазики и Ромашки". Мы работаем как рабы
That wonders if there are pitfalls, in terms of such phrases with quotes and dots, and how to avoid it?
before skidding into the database, do mysql_real_escape_string($_REQUEST['text'])
.
On output, stripslashes(htmlspecialchars($text_from_base,ENT_QUOTES))
field_1
FROM table
WHERE field_1
= '$ field_1' AND field_2
= '$ field_2' LIMIT 0.1"; $ sql = mysql_query ($ query); $ field_1 = $ sql [1]; $ field_2 = $ sql [2]; ? - frankSource: https://ru.stackoverflow.com/questions/100474/