i am updating the form of use and i get id from another page how can i user this id in class and function of class . i am doing this
public function edit_vender()
{
$sqlupdate = "UPDATE `vender_master` SET `vender_no`='$this->vender_no',`vender_title`='$this->vender_title',`vender_address`='$this->vender_address',`vender_telephone`='$this->vender_telephone',`vender_email`='$this->vender_email',`vender_name`='$this->vender_name',`vender_cell`='$this->vender_cell',`vender_comments`='$this->vender_comments',`bank_name`='$this->bank_name',`bank_code`='$this->bank_code',`account_no`='$this->account_no',`account_holder`='$this->account_holder',`contactperson_name`='$this->contactperson_name',`contactperson_designation`='$this->contactperson_designation',`contactperson_cell`='$this->contactperson_cell',`contactperson_department`='$this->contactperson_department',`contactperson_telephone`='$this->contactperson_telephone',`contactperson_email`='$this->contactperson_email' WHERE `vender_id` ='$this->vender_id'";
$result = @mysql_query($sqlupdate, $this->get_conn());
if(!$result)
{
throw new Exception("Failed To Inser Query" . mysql_error());
}
}
i have send id to process file from input hidden input but how can i send this to the class