Could someone help me..
I'm trying to escape special chars: " , ' backslash * and other special chars to prevent sql injection.
The problem here is that i'm using php and sql server.
I've searched a lot, but nothing that could really help me, specially with the ' char.
Here is my code:
public function query($sql)
{
$result = sqlsrv_query($this->connection, $sql);
return $result;
}