• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.


  1. Kepala Suku

    [Solved] HTTP Authentication Basic Using Codeigniter And MySql

    Here is what i done when need http authentication basic on Codeigniter using MySql as database. function auth() { $authorized = false; $username = isset($_SERVER['PHP_AUTH_USER'])?$_SERVER['PHP_AUTH_USER']:''; $password = isset($_SERVER['PHP_AUTH_PW'])?$_SERVER['PHP_AUTH_PW']:''...
  2. Kepala Suku

    Catatan Codeigniter Get Sum Value From MySql Query

    Below Function is used for getting sum value from MySql query: function getRemainder($id){ $q = $this->db->select("SUM(QTYMuat) as total_qty from distribusi WHERE NoTransaksi1 ='$id' OR NoTransaksi2 = '$id'"); $response = $q->get()->row(); return $response->total_qty; } I put that...