Welcome Guest, Not a member yet? Register   Sign In
MS access connection
#1

[eluser]chicoNERD[/eluser]
Hey I been trying to connect to a access file but I haven't been successful, I did a search be fore I posted this question and the follwoing 2 didnt work.


Search #1
Search #2

This is what I got so far, it was working before so I don't understand.
Code:
$db['access']['hostname'] = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=C:/xampp/htdocs/human/db/test.mdb";
$db['access']['username'] = "ADODB.Connection";
$db['access']['password'] = "";
$db['access']['database'] = "C:/xampp/htdocs/human/db/test.mdb";
$db['access']['dbdriver'] = "odbc";
$db['access']['dbprefix'] = "";
$db['access']['pconnect'] = TRUE;
$db['access']['db_debug'] = TRUE;
$db['access']['cache_on'] = FALSE;
$db['access']['cachedir'] = "";
$db['access']['char_set'] = "utf8";
$db['access']['dbcollat'] = "utf8_general_ci";

using XAMPP on Windows 7
#2

[eluser]Spockz[/eluser]
What is the exact error you are getting? Maybe something on your system changed?
#3

[eluser]chicoNERD[/eluser]
Code:
An Error Was Encountered
You have specified an invalid database connection group.
#4

[eluser]Spockz[/eluser]
Okay, check what the following variable is set to in 'config/database.php'.

Code:
$active_group = "default";
#5

[eluser]chicoNERD[/eluser]
Thats is what I have I haven't changed the group.
#6

[eluser]Spockz[/eluser]
It should read
Code:
$active_group = 'access';
Does it read that?
#7

[eluser]chicoNERD[/eluser]
When I changed it to that I get this error
Code:
Fatal error: Call to undefined method CI_DB::CI_DB() in C:\xampp\htdocs\human\system\database\drivers\odbc\odbc_driver.php on line 53

thanks for the active help.
#8

[eluser]chicoNERD[/eluser]
Anyone?
#9

[eluser]chicoNERD[/eluser]
I installed it on my Desktop and it worked but still it is not working on my laptop.. any one knows why I cant connect to Access files on my laptop?
#10

[eluser]Spockz[/eluser]
Do you have Access and ODBC installed on your laptop?




Theme © iAndrew 2016 - Forum software by © MyBB