Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter using wrong DB driver?
#1

[eluser]dirtyfrenchman[/eluser]
Hi all, I've been trying to find the reason behind this and haven't been able to find an answer thus far.

I'm using CI to connect to SQL Server 2007 using the ODBC driver

$db['default']['dbdriver'] = "odbc";

However, when I launch scaffolding for one of the tables in my database, it doesn't see any entries even though there are many. If i attempt to insert an entry, I get the following warning.

Code:
A PHP Error was encountered

Severity: Warning
Message: mysql_fetch_field(): supplied argument is not a valid MySQL result resource
Filename: mysql/mysql_result.php
Line Number: 93

It seems like CI is trying to use the mysql driver even though I instructed it to use the ODBC. I have checked the database connection values many times, and they are all correct.

Note: If I attempt to use the mssql driver, I just get a blank page.




Theme © iAndrew 2016 - Forum software by © MyBB