Why my update query in my php fails?
<p>I'm new in php.
Usually my update query is working, only in this block resulting a query fail, I get the officer value from <code>$_SESSION[id]</code> that determined before, and <code>contact_id</code> from a form before.<br>
Please help...</p>

<pre><code>&lt;?php
$server="localhost";
$db_user="root";
$pass="h6194v";
$db="my_db";
$koneksi=mysql_connect($server,$db_user,$pass)
     or die ("Connection Error!!");
$dateline=date("Ymd");
$query="UPDATE `contact` SET `date`=\'$dateline\', `officer`=\'$_SESSION[id]\' WHERE `contact_id`=\'$_POST[no]\'";
$result=mysql_query($query) or die ("Query fail");
?&gt;
</code></pre>
