Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $this->db->query(" UPDATE tb_nilai_normalize
- SET count = count + 1
- WHERE term_id = $term[id]
- AND fotografer_id = $fotografer[fotografer_id]");
- $satu_keahlian_fotografer = $this->db->query(" SELECT count
- FROM tb_nilai_normalize
- WHERE term_id = $term[id]
- AND fotografer_id = $fotografer[fotografer_id]"); // seleksi satu baru
- // print_r($satu_keahlian_fotografer);
- $nilai_normalize = ($satu_keahlian_fotografer->count) / $jumlah_keahlian_foto;
- $this->db->query(" UPDATE tb_nilai_normalize
- SET nilai_normalize = $nilai_normalize
- WHERE term_id = $term[id]
- AND fotografer_id = $fotografer[fotografer_id]");
Advertisement
Add Comment
Please, Sign In to add comment