php pdo execute array quotations
<p>The below prepared statement doesn't insert into the database.</p>

<pre><code>$sid =1;
$sid2 = $GET['sid2']; //empty
$position = 0;
$name = "John";

$new = $connectdb-&gt;prepare("INSERT INTO `table1` VALUES ('',:sid,:sid2,:position,:name)");
                $new-&gt;execute(array(':sid'=&gt;$sid,':sid2'=&gt;$sid2,':position'=&gt;$position,':name'=&gt;$name));
</code></pre>

<p>When i add quotations to execute array values, then the insert works.  </p>

<pre><code>$new-&gt;execute(array(':sid'=&gt;"$sid",':sid2'=&gt;"$sid2",':position'=&gt;"$position",':name'=&gt;"$name"));
</code></pre>

<p>What i want to know is by adding quotations does this affect PDO's sanitization?   </p>
