Welcome Guest, Not a member yet? Register   Sign In
Error when using db library (set to autoload)
#5

[eluser]Ren83[/eluser]
Code:
<?php

class Staff_m extends CI_Model
{
        private $serial;
        public function __construct() {
                  parent::__construct();
        }

        public function get_staff_data($serial){

                  $this->serial = $serial;
                  $result = $this->db->query('SELECT * FROM staff WHERE serial ='.$serial);

        }
}
?>


Messages In This Thread
Error when using db library (set to autoload) - by El Forum - 07-28-2011, 03:37 PM
Error when using db library (set to autoload) - by El Forum - 07-28-2011, 08:32 PM
Error when using db library (set to autoload) - by El Forum - 07-29-2011, 02:47 AM
Error when using db library (set to autoload) - by El Forum - 07-29-2011, 03:01 AM
Error when using db library (set to autoload) - by El Forum - 07-29-2011, 03:27 AM
Error when using db library (set to autoload) - by El Forum - 07-29-2011, 03:37 AM
Error when using db library (set to autoload) - by El Forum - 07-29-2011, 05:56 AM
Error when using db library (set to autoload) - by El Forum - 07-29-2011, 07:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB