2
I’m having doubts about SQL Injection in PHP. I have a class that has the user object, and there has name, age, etc.
Then I put in the variable query
something like:
insert into tb_usuarios(nome)values('$this->nome');
Surely you are at risk of suffering SQL Injection right? I read about mysqli_real_escape_string
and say it’s not totally safe.
Someone can give me a light?