I'm integrating my website with an API that only allows me to execute MSSQL in string form. I cannot use a prepared/bound statement since the API will only accept a string.
Is escaping with mysqli_real_escape_string effective/compatible with MSSQL when I cannot execute prepared statements?
Example:
$query = "SELECT * FROM foo WHERE product='.mysql_real_escape_string($user_input)."'";
api($query);