title: trying to update db values from php form but not reflect any result
body: <p>here  my php program for same:</p>
  
  <pre><code>public function updateUser($id,$name,$lname,$username,$password,$gender,$email,$mobile,$address) {
    printF($id);
    $update = ("UPDATE oops SET firstname = '$name',lastname = '$lname', username= '$username',password='$password',email = '$email', gender = '$gender', mobile = '$mobile' , address = '$address' WHERE uid = '$id'");
    printF($update);
    $result = mysql_query($update);
  
    if ($result) {
      return true;
    } else {
      return false;
    }
  }
  </code></pre>