chess/application/models/Update_model.php

12 lines
325 B
PHP
Raw Permalink Normal View History

2024-03-08 13:03:59 +00:00
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Update_model extends CI_Model {
public function update_tournament($tournament_id, $data) {
$this->db->where('tid', $tournament_id);
$this->db->update('tournament', $data);
return $this->db->affected_rows();
}
}