I have a form that sends datas to my DB.
However I want to make sure it is safe.
I used to use htmlspecialchars($variableToSecure)
But I learned it is not enough (protects only from html injections)
I searched on internet and found mysql_real_escape_string($variableToSecure)
But this one is obsolete and doesn't exist since php 7.0
I wish to know what is the best way to secure a variable now?