wrong display after deleting record
<p>I use this code to trigger the row delete:</p>

<pre><code>&lt;a href="javascript:void(0);" onclick='$.get("web_page.php",{ cmd: "delete_stmt", id_f: "&lt;?php echo $rrows['id_f']; ?&gt;", id: "&lt;?php echo $row['id']; ?&gt;" } ,self.location="web_page.php");'&gt;delete&lt;/a&gt;
</code></pre>

<p>and this is the code:</p>

<pre><code>if($get['cmd'] == 'delete_stmt') {
        $stmt = $conn_bd-&gt;prepare("DELETE FROM table WHERE id_f=:id_f and id=:id");
        $stmt-&gt;execute(array('id_f' =&gt; $get[id_f], 'id' =&gt; $get[id]));
        $stmt-&gt;execute();
    }
</code></pre>

<p>the record is always deleted from the database table, but sometimes the record is displayed on the web page.
this happens in IE, Firefox, Chrome ...</p>

<p>do you have an idea what could be causing this?</p>

<p>thk</p>
