Welcome Guest, Not a member yet? Register   Sign In
db.php line 124 erroe
#1

[eluser]mohammad.khlouf[/eluser]
hello

after i installed the sql driver the message now

http://46.43.79.191/ci
Not Found

The requested URL /ci/login was not found on this server.

if i make the debug true
it gives me
db.php line 124

please help
#2

[eluser]mohammad.khlouf[/eluser]
A Database Error Occurred

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

Filename: C:\Apache2.2\htdocs\ci\system\database\DB_driver.php

Line Number: 124
#3

[eluser]Israel Pereira[/eluser]
Mohammad, be sure your SQL driver is working.

First, I created for you a script to verify if your SQL is working with you PHP.

Code:
<?php

//Configuration of your database
$config = array(
"server" => "YOUR_SERVER_ADDRES",
"user" => "YOUR_USER",
"password" => "YOUR_PASSWORD",
"database" => "YOUR_DATABASE"
);

//Creating connection
$dbhandle = mssql_connect($config["server"], $config["user"], $config["password"]) or die("Error on database connection");

//Selecting database
$selected = mssql_select_db($config["database"], $dbhandle) or die("Error in select database {$config["database"]}");

//Your Query
$query = "SELECT * FROM your_table";

//Executing query
$result = mssql_query($query);
#$numRows = mssql_num_rows($result);
#echo "{$numRows} rows";

//Showing results
while($row = mssql_fetch_array($result)){
echo "YOUR RESULT {$row["your_table_field"]}";
}

//Closing conection
mssql_close($dbhandle);

?>

Send me a feedback to know what happened!
#4

[eluser]ahmed.alsiddig[/eluser]
open the database.php file
just make it like this :
Code:
$active_group = 'default';
$active_record = TRUE;

$db['default']['hostname'] = 'localhost';
$db['default']['username'] = 'root';
$db['default']['password'] = '';
$db['default']['database'] = 'your db name';
$db['default']['dbdriver'] = 'mysql';
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = '';
$db['default']['char_set'] = 'utf8';
$db['default']['dbcollat'] = 'utf8_general_ci';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;




Theme © iAndrew 2016 - Forum software by © MyBB