Untitled Document
include("../connection.php");
class saverecords extends connection
{
var $idNo,$name;
function __destruct() { }
function renamePass($npass)
{
$qry="select * from user";
$fire=mysql_query($qry,$this->conn);
while($rec=mysql_fetch_array($fire))
{
//$this->idNo=$rec["id"];
$idno=$_SESSION["myid"];
}
$qry="update user set password='$npass' where id='$idno'";
mysql_query($qry,$this->conn) or die("error in change password......");
echo "