Welcome Guest, Not a member yet? Register   Sign In
trying to connect to db provides blank page
#1

[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
#2

[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 ....
#3

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

[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




Theme © iAndrew 2016 - Forum software by © MyBB