adityairvndn

Object of class CI_DB_mysqli_result could not be converted t

Nov 27th, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.86 KB | None | 0 0
  1. $this->db->query("  UPDATE tb_nilai_normalize
  2.                    SET count = count + 1
  3.                    WHERE term_id = $term[id]
  4.                    AND fotografer_id = $fotografer[fotografer_id]");
  5. $satu_keahlian_fotografer = $this->db->query("  SELECT count
  6.                                                FROM tb_nilai_normalize
  7.                                                WHERE term_id = $term[id]
  8.                                                AND fotografer_id = $fotografer[fotografer_id]"); // seleksi satu baru
  9. // print_r($satu_keahlian_fotografer);
  10. $nilai_normalize = ($satu_keahlian_fotografer->count) / $jumlah_keahlian_foto;
  11. $this->db->query("  UPDATE tb_nilai_normalize
  12.                    SET nilai_normalize = $nilai_normalize
  13.                    WHERE term_id = $term[id]
  14.                    AND fotografer_id = $fotografer[fotografer_id]");
Advertisement
Add Comment
Please, Sign In to add comment