title: codeigniter image upload (get the crypted name)
body: <p>I want to upload images to my server and it works fine and I have encrypted the name on the images.</p>
  
  <p>But now I want to update the user table in my database so I can show the image on the users' profile.</p>
  
  <p>My problem is that I can't find out how to insert the encrypted image name in the database table called "users" and the felt Field in users table is "profile_picture".</p>
  
  <p>I have tried this</p>
  
  <pre><code>$profilBilledNavn = $this-&gt;upload-&gt;data('file_name');
  $this-&gt;db-&gt;where('username', $this-&gt;input-&gt;post('username'));
  $this-&gt;db-&gt;update('users', $profilBilledNavn); 
  </code></pre>
  
  <p>but it doesn't work. What am I doing wrong?</p>