title: update user column with session
body: <p>I have delete option on my php page but I have added option to archive the data before delete but the same time I want update the user name with the person session user name.</p>
  
  <pre><code>$id=$_GET['id'];
  
   $sql="INSERT INTO c_archive_table(tech, eng, dr) SELECT tech, eng, dr FROM   `Com` WHERE `id`='$id'";
   $sql_user = "INSERT INTO  c_archive_table('','user','$_SESSION['username']') WHERE `id`='$id'";
   $sql_delete="DELETE FROM `Com` WHERE `id`='$id'";
  </code></pre>
  
  <p>so moving to archive and delete working but adding user Session to user column didn't work.</p>