• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WAMPP problem CI V2.1.0

#1
[eluser]Unknown[/eluser]
Quote:A Database Error Occurred

Unable to connect to your database server using the provided settings.

Filename: C:\wamp\www\autosurfProject\system\database\DB_driver.php


Line Number: 124

i doin the test from my computer not config TODO!

DIR/.../Controller/files_xx.php
Code:
<?php
//ETC... class xx extent CI_xx{


public function index()
{
  $this->load->database();
  $query = $this->db->query('SELECT contents FROM articles');
  
  $this->load->view('articles_home');
}


and after the DIR/.../views/files_xxx.php
Code:
<!DOCTYPE html>

  &lt;?php
#Template header
  foreach ($query->list_fields() as $field)
  {
   echo $field->type();
  }
#TEmplate Footer
  ?&gt;


Info:
Configuration Serveur

Version de Apache:
2.2.21
Version de PHP:
5.3.10
Extensions Chargées:

Core
bcmath
calendar
com_dotnet
ctype
date
ereg
filter
ftp
hash
iconv
json
mcrypt
SPL
odbc
pcre
Reflection
session
standard
mysqlnd
tokenizer
zip
zlib
libxml
dom
PDO
Phar
SimpleXML
wddx
xml
xmlreader
xmlwriter
apache2handler
mbstring
gd
mysql
mysqli
pdo_mysql
pdo_sqlite
mhash
xdebug

Version de MySQL:
5.5.20

What plugin i must 've to activate? or not need!!! thank at all, ll waitting ur response!!! TCKAlexon

#2
[eluser]Dan Storm[/eluser]
Did you try entering your database information into application/config/database.php ?

#3
[eluser]Unknown[/eluser]
yes already config sir


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.