Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function history($ccod) {
- $this->db->select('dat, cliente, texto, comcod, cnome, username');
- $this->db->where('cliente', $ccod);
- $this->db->from('comentarios');
- $this->db->join('clientes', 'clientes.ccod = comentarios.cliente');
- $this->db->join('users', 'users.id = comentarios.autor');
- $query = $this->db->get();
- return $query->result();
- }
- function inserir_coment($data) {
- return $this->db->insert('comentarios', $data, "autor.comentarios = user.id");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement