• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lost Database Connection

#1
When I use this code:

PHP Code:
$this->db = \Config\Database::connect($this->base_datos);
$this->query $this->db->table($this->db_tabla);
$this->db_columnas $this->db->getFieldNames($this->db_tabla); 

I get the error:

Quote:ErrorException: pg_escape_literal() expects parameter 1 to be resource, boolean given

If don't call getFieldNames the error desapears.

Thanks
Reply


Messages In This Thread
Lost Database Connection - by portaflex - 07-11-2016, 12:34 AM
RE: Lost Database Connection - by InsiteFX - 07-11-2016, 03:12 AM
RE: Lost Database Connection - by portaflex - 07-11-2016, 06:00 AM
RE: Lost Database Connection - by kilishan - 07-11-2016, 06:17 AM
RE: Lost Database Connection - by portaflex - 07-11-2016, 03:01 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.