Welcome Guest, Not a member yet? Register   Sign In
getting message: oci_execute(): ORA-00942: table or view does not exist
#16

(This post was last modified: 11-13-2018, 05:37 AM by Ahmed Haroon.)

from my attached Dep_models.php, here I am using 'oracle' and the 'default' line is remarked:
PHP Code:
   public function __construct() //model construct function
 
   {
 
       $this->db=$this->load->database('oracle',true); // oracle db
 
       //$this->db=$this->load->database('default',true); // mysql db
 
   }

 
   public function getDept()
 
   {
 
       $query=$this->db->get('departments');
 
       //$query=$this->db->get('departments');
 
       return $query;
 
   
Reply


Messages In This Thread
RE: getting message: oci_execute(): ORA-00942: table or view does not exist - by Ahmed Haroon - 11-13-2018, 05:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB