NOt able to update existing data of a application form
<p>I am editing my application form.So what i am Doing telling you here..I am already logged in</p>

<ul>
<li>First of all i am giving a edit link(edit_profile1.php) on my home page</li>
<li>NOw i am asking again for username and password so that unauthorized user can not making editing in your profile</li>
<li>NOw on edit_profile1.php i am checking username and password sent by user to the username and password stored in database</li>
<li>If username and password are correct then i am redirected to edit_profile2.php</li>
<li>Here I  am creating a form with same text boxes as i used in filling the application form(i am using same name for boxes).Here is a button with name update</li>
</ul>

<p>For the last page edit_profile3.php i am giving coading here</p>

<pre><code>&lt;?php

    $con=mysql_connect("localhost","root","");
        if(!$con)
        {
        die('Could Not Connect:'.mysql_error());
        } 
        mysql_select_db("tcs",$con);

$usr=$_POST["username"];                 
$pwd=hash('sha1',$_POST['password']);   

$query="select * from employee where Username='$usr' and Password='$pwd'";   

$result=mysql_query($query,$con);


if ($result) 
{

$row=mysql_fetch_array($result);
$sql="update employee set ($row['Username']=$usr,$row['Password']=$pwd");

$deepak=mysql_query($sql,$con);

if($deepak)
{
    echo "Updation Successfull"
}
</code></pre>

<p>}<br>
  ?>                    </p>

<p>Now when i excute this error is coming like this
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in F:\Study Material\Linux\xampp\htdocs\edit_profile3.php on line 21</p>

<pre><code>Line number 21 is 
 $sql="update employee set ($row['Username']=$usr,$row['Password']=$pwd");
</code></pre>

<p>NOw i am not getting where i am getting wrong.Plz also tell me is there any other method for updating application forms any another logic.Plz check out above.</p>
