Hello Guys ... i am new here and i am also new in php
i selfstudy html css and js and bootstrap for front-end
and for back-back php & mysql & PDO & OOP and i will soon start mvc then laravel
and i am trying to secure my input field and i do not want any attacks or sql injects
and i see people user filter_var and htmlentities and htmlspecialchars and each one has diffrent opinion
can some one help me and tell me what is the best for securing input which all values will store in database
thanks <3