//$this->db->query("update ".WEBMENG_CONMENG."integral set amount=amount-1 where id='".$id."'");
$this->db->query("update ".WEBMENG_CONMENG."user set integral=integral-$integral where id='".$uid."'");
$sql = "SELECT amount FROM ".WEBMENG_CONMENG."integral WHERE id = {$id}";
$amount=$this->db->fetch_one($sql);
$this->db->query("update ".WEBMENG_CONMENG."integral set amount=$amount-1 where id='".$id."'"); //$amount = $this->db->update("integral",array("amount"-'1'),array("id"=>$id)); //print_r($data);
// var_dump($data);die;