コード例 #1
0
ファイル: model.php プロジェクト: afliw/ponponpon
 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);
 }
コード例 #2
0
ファイル: client.php プロジェクト: afliw/ponponpon
 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_}')");
 }