I have a simple classifieds website...
Classifieds are inserted into MySql tables and the only thing I use to sanitize user input is mysql_real_escape_string
.
Is this enough?
The PDO is the best way offcourse, but what IS actually the difference between using only mysql_real_escape_string
and PDO, in lets say this query:
SELECT * FROM table_name WHERE table_name.classified = '$classified';
OR
INSERT INTO table_name (input1, input2) VALUES ('$input1', $input2);
Thanks