CodeIgniter Forums
trying to connect to db provides blank page - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: trying to connect to db provides blank page (/showthread.php?tid=27398)



trying to connect to db provides blank page - El Forum - 02-09-2010

[eluser]RJ[/eluser]
Hello,

I am trying to test the connection with a new database, when I load the db in my welcome controller like:
Code:
$this->db = $this->load->database('default', TRUE);

All I receive is a blank page, not the default welcome_message view. When I comment out this line I receive the page. I'm assuming that means there is a connection error, but even with error_reporting(E_ALL) nothing is shown. Any ideas how I can make return an error if present?

Using Postgre database.

Thanks


trying to connect to db provides blank page - El Forum - 02-09-2010

[eluser]Sarfaraz Momin[/eluser]
can you post your database.php config file if you don't mind it ? values are not important here as we assume they are right ....


trying to connect to db provides blank page - El Forum - 02-10-2010

[eluser]n0xie[/eluser]
Do you have php5-pgsql installed?


trying to connect to db provides blank page - El Forum - 02-10-2010

[eluser]RJ[/eluser]
Got it worked out, had to place the program on the server and connect through localhost, rather than connecting on my desktop LAMP environment. thank you