Welcome Guest, Not a member yet? Register   Sign In
MySQL not working
#1

[eluser]klompie[/eluser]
Have searched for this en found others with the same sort of problems, but cant solve this.

when i use $autoload['libraries'] = array('database'); nothing will load. every page i open stays white. (no source too)

this is my loaded controller:
Code:
<?php

class Klant extends Controller {

    function Klant()
    {
        parent::Controller();
    }
  
    function index()
    {
        echo 'Hello World!<br>';
        mysql_connect("localhost","crm_user","******") or die(mysql_error());
        mysql_selectdb("dtd_crm") or die(mysql_error());
        echo 'Connected!';
    }
}

/* End of file klant.php */
/* Location: ./application/controllers/klant.php */

when i disable autoloading of database it echo's "Hello World! Connected!" so this way it is working.

I tried setting pconnect to false but this did not solve it.

So how to solve this. Sad


Messages In This Thread
MySQL not working - by El Forum - 10-01-2010, 06:50 AM
MySQL not working - by El Forum - 10-01-2010, 06:54 AM
MySQL not working - by El Forum - 10-01-2010, 06:56 AM
MySQL not working - by El Forum - 10-01-2010, 07:02 AM
MySQL not working - by El Forum - 10-01-2010, 07:03 AM
MySQL not working - by El Forum - 10-01-2010, 07:06 AM
MySQL not working - by El Forum - 10-01-2010, 07:09 AM
MySQL not working - by El Forum - 10-01-2010, 07:22 AM
MySQL not working - by El Forum - 10-01-2010, 07:26 AM
MySQL not working - by El Forum - 10-01-2010, 07:37 AM
MySQL not working - by El Forum - 10-01-2010, 07:39 AM
MySQL not working - by El Forum - 10-01-2010, 07:40 AM
MySQL not working - by El Forum - 10-01-2010, 07:45 AM
MySQL not working - by El Forum - 10-01-2010, 07:50 AM
MySQL not working - by El Forum - 10-01-2010, 11:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB