Welcome Guest, Not a member yet? Register   Sign In
Database library give blank screen on CI 1.7
#1

[eluser]bgougent[/eluser]
I have a strange problem.
Made a new project on CI 1.7
The moment is want to load the database lib I get a blank output screen.

So I reinstalled a blank CI, filled in my database config en loaded the lib in the CI Welcome controller. Result a blank screen

Configuration
MySQL 4.0.24
PHP Version 4.3.10-22

any idea what I need to change?
#2

[eluser]xwero[/eluser]
The char_set isn't present in mysql versions lower than 4.1. The solution : drivers/mysql/mysql_driver.php
Code:
function db_set_charset($charset, $collation)
    {
        return @mysql_query("SET NAMES '".$this->escape_str($charset)."' COLLATE '".$this->escape_str($collation)."'", $this->conn_id);
    }
Change to
Code:
function db_set_charset($charset, $collation)
    {
        return TRUE;
    }
#3

[eluser]bgougent[/eluser]
Problem solved ... how I did ???

It has nothing to do with the db_set_charset, I deleted all files reloaded CI 1.7, added my routes controllers and the database load. And it is working again.




Theme © iAndrew 2016 - Forum software by © MyBB