Welcome Guest, Not a member yet? Register   Sign In
ODBC Connection Help
#2

[eluser]pickupman[/eluser]
You are calling:
Code:
$result->result_array()

However, you are not using the ActiveRecord class, but straight PHP. That causes the result_array() to not be an available method. You may want to try out using [url="http://ellislab.com/codeigniter/user-guide/database/configuration.html"]CI's odbc driver[/url]. It will connect in the same way you are trying to in your constructor, but give you access to the CI ActiveRecord methods.

If you don't switch to that option, you will need to iterate the result using straight PHP which defeats some of the purpose of using CI.


Messages In This Thread
ODBC Connection Help - by El Forum - 11-01-2013, 12:16 AM
ODBC Connection Help - by El Forum - 11-01-2013, 05:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB