php sends a request to the database ms sql, the following:
$name = 'text Text text text "a name in quotes"';
$sql = "SELETC * FROM Table WHERE Pole = '".$name."'";
as a result of this request do not get anything(
but if $name is in the form 'Text text text' or 'text Text text "Text in quotes"' the request fulfills normally.
Also, if you run the query directly in the database SELETC * FROM Table WHERE Pole = 'Text text text text "a name in quotes"'. He also will work correctly.
Obviously the problem with double quotes " ", but how to solve it?