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

[eluser]klompie[/eluser]
This is my database.php:
Code:
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -----------

...

| The $active_record variables lets you determine whether or not to load
| the active record class
*/

$active_group = "default";
$active_record = TRUE;

$db['default']['hostname'] = "localhost";
$db['default']['username'] = "crm_user";
$db['default']['password'] = "****************";
$db['default']['database'] = "dtd_crm";
$db['default']['dbdriver'] = "mysql";
$db['default']['dbprefix'] = "";
$db['default']['pconnect'] = FALSE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "";
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";


/* End of file database.php */
/* Location: ./application/config/database.php */

this is my controller:
Code:
<?php

class Klant extends Controller {

    function Klant()
    {
        parent::Controller();
    }
  
    function index()
    {
        echo 'Hello World!<br>';
        $this->db->query('SELECT * FROM klanten');
        echo 'Connected!';
    }
}

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

this is my autoload:
Code:
&lt;?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

$autoload['libraries'] = array('database');

$autoload['helper'] = array('url');

$autoload['plugin'] = array();

$autoload['config'] = array();

$autoload['language'] = array();

$autoload['model'] = array();



/* End of file autoload.php */
/* Location: ./system/application/config/autoload.php */



And this gives me... nothing (a white screen)


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