CI 1.6 with Postgres 8.2 database connection problem |
[eluser]fdog[/eluser]
Can't connect to postgres. All services are running and the data base and tables were created. The port is right. (triple checked). database.php: Code: $active_group = "default"; controller: Code: class Fooclass extends Controller {
[eluser]Seppo[/eluser]
Can you connect if you create a new PHP file, outside CI? Something like this Code: <?php (trying to see if it's a CI issue or a PHP-postgre thing.
[eluser]fdog[/eluser]
Thanks a lot Seppo. I didn't have installed the PostgreSQL module for php5.
[eluser]fdog[/eluser]
Now I'm getting this error when I to try to retrieve fields from a table: controller: Code: $data['query'] = $this->db->get('entries'); error: Code: You have an error in your SQL syntax near «)» LINE 2: FROM ("entries") ^ I even get something very similar with scaffolding. Is it a bug? [Edit]: It was a bug ![]() |
Welcome Guest, Not a member yet? Register Sign In |