I want to insert html-code in database. How can I correctly escape string?
$html = '<tag>';
$sql = 'UPDATE table SET text = ? WHERE id = 1';
$stmt = sqlsrv_prepare($conn, $sql, array(&$html));
sqlsrv_execute($stmt);
This code throw error: Incorrect syntax near '<'.