Hey ppl..
i wrote a code to update the password encryption in my site.. the code is..
<?php
$db= mysql_pconnect("localhost","root","root");
mysql_select_db("nitconnect");
$query="select password from register limit 1000";
$result=mysql_query($query);
$c=0;
while($ans=mysql_fetch_array($result))
{
$newpass=sha1($ans[0].'Q*iV%qKz$&!C');
$newone="update register set password='{$newpass}' where password='{$ans[0]}'";
mysql_query($newone);
}
?>
How do i correct this error?