public function modifyProduct($name, $brand, $rowToChange, $updatedValue) { $Name = Antiexploit::detectExploit($name, $_SERVER['REMOTE_ADDR']); $Brand = Antiexploit::detectExploit($brand, $_SERVER['REMOTE_ADDR']); $Row = Antiexploit::detectExploit($rowToChange, $_SERVER['REMOTE_ADDR']); $Val = Antiexploit::detectExploit($updatedValue, $_SERVER['REMOTE_ADDR']); Database::query("UPDATE products SET {$Row} = ? WHERE product_name = ? AND product_brand = ?", "update", array($Val, $Name, $Brand)); }
public function modify($email, $row, $update, $ip) { $Email = Antiexploit::detectExploit($email, $ip); $Update = Antiexploit::detectExploit($update, $ip); Database::query("UPDATE users SET {$row} = ? WHERE email = ?", "update", array($Update, $Email)); }