Welcome Guest, Not a member yet? Register   Sign In
database related problem
#5

[eluser]John_Betong_002[/eluser]
If all else fails then dab this debug test code onto the end of:

// ./application/config/database.php
Code:
// /*
  echo '<pre>';
    print_r($db['default']);
  echo '</pre><br />';

  echo 'Connecting to database: ' .$db['default']['database'];

  $dbh=mysql_connect
  (
    $db['default']['hostname'],
    $db['default']['username'],
    $db['default']['password'])
    or die('Cannot connect to the database because: ' . mysql_error()
  );
  
  mysql_select_db ($db['default']['database']);
    
  echo '<br />Connected OK:';
    
// */
&nbsp;
&nbsp;
&nbsp;


Messages In This Thread
database related problem - by El Forum - 04-18-2011, 01:08 AM
database related problem - by El Forum - 04-18-2011, 01:12 AM
database related problem - by El Forum - 04-18-2011, 07:49 AM
database related problem - by El Forum - 04-18-2011, 07:57 AM
database related problem - by El Forum - 04-18-2011, 08:01 AM
database related problem - by El Forum - 04-18-2011, 08:03 AM
database related problem - by El Forum - 04-18-2011, 08:08 AM
database related problem - by El Forum - 04-18-2011, 08:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB