12 lines
325 B
PHP
12 lines
325 B
PHP
<?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();
|
|
}
|
|
}
|