static function delete($table, $where = '') { $sql = 'DELETE FROM ' . self::prefix($table); if (!empty($where)) { $sql .= ' WHERE ' . self::where($where); } return self::execute($sql); }
public function borrar_usuario($id) { parent::__construct($this->db, $this->tabla); $args = array(); $args["where"] = array("idUsuario=:id"); $args["valores"] = array(":id" => $id); parent::delete($array); }