Example #1
0
 public function Update()
 {
     if (!is_numeric($id_client)) {
         return false;
     }
     $parsedAttributes = $this->parseAttributesForUpdate();
     if (!$parsedAttributes) {
         return false;
     }
     $query = "UPDATE client SET " + $parsedAttributes;
     return DB::Write($query);
 }
Example #2
0
 public static function write_data($name_, $lastname_, $status_, $phone_, $cellphone_, $amount_, $sharecpe_, $wifimodel_, $cpemac_)
 {
     DB::Write("INSERT INTO client (name,lastname,status,phone,cellphone,sharecpe,cpemodel,cpemac,wifimodel VALUES('{$name_}','{$lastname_}','{$status_}','{$phone_}','{$cellphone_}','{$amount_}','{$sharecpe_}','{$cpemodel_}','{$wifimodel_}','{$cpemac_}')");
 }