title: DB Not updating value upon submit
body: <p>I have a small issue with updating my database upon a submit. </p>
  
  <p>I have the following in my Database: 
  a varchar called iUserCash. </p>
  
  <p>Upon login I would like to edit this row in my database table. </p>
  
  <p>The html looks like this: </p>
  
  <pre><code>&lt;form method="post"&gt;
              &lt;table class="sign_up_form" align="center" width="30%" border="0"&gt;
              &lt;tr&gt;
               &lt;td&gt;
                  &lt;input type="text" name="cashBalance" placeholder="Nye beløb"/&gt;
              &lt;/td&gt;
              &lt;td&gt;
                  &lt;button type="submit" name="btn-update" class="betting-btn"&gt;OPDATER&lt;/button&gt;
              &lt;/td&gt;
              &lt;td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
              &lt;/tr&gt;
              &lt;/table&gt;
              &lt;/form&gt;
  </code></pre>
  
  <p>And my sql looks like this: </p>
  
  <pre><code>session_start();
  include_once 'controllers/dbConnect.php';
  
  if(!isset($_SESSION['user']))
  {
   header("Location: index.php");
  }
  $res=mysql_query("SELECT * FROM oneusers WHERE iUserId=".$_SESSION['user']);
  
  $userRow=mysql_fetch_array($res);
  
  if(isset($_POST['btn-update']))
  {
   $ucash = mysql_real_escape_string($_POST['cashBalance']);
  
   if(mysql_query("UPDATE oneusers SET iUserCash = '$ucash' WHERE iUserId='$res'"))
   {
  ?&gt;
          &lt;script&gt;alert('successfully registered ');&lt;/script&gt;
          &lt;?php
   }
   else
   {
    ?&gt;
          &lt;script&gt;alert('error while registering you...');&lt;/script&gt;
          &lt;?php
   }
  }
  </code></pre>
  
  <p>It returns the success message just fine, but it just doesnt update anything. Can anyone tell me what I am doing wrong? :) 
  Thanks in advance. </p>