Welcome Guest, Not a member yet? Register   Sign In
SQL Server Not Returning Data
#5

(06-09-2015, 02:14 PM)bazianm Wrote:
(06-09-2015, 12:26 PM)mwhitney Wrote: Did you try $query->result_array() instead of $query->result_array?

Do you have autoinit set to true in your database config (or, if not, are you initializing your database connection)?

It was result_array(). Don't ask me how I missed that. I must have looked at that piece of code 1000 times!

I wonder why PHP didn't kick that out as an error?

THANKS for the assist!

result_array is also a public property in the db library, but it doesn't necessarily have a value until you call one of the methods which populates it (like result_array()).
Reply


Messages In This Thread
SQL Server Not Returning Data - by bazianm - 06-09-2015, 09:20 AM
RE: SQL Server Not Returning Data - by mwhitney - 06-09-2015, 12:26 PM
RE: SQL Server Not Returning Data - by bazianm - 06-09-2015, 02:14 PM
RE: SQL Server Not Returning Data - by mwhitney - 06-10-2015, 06:32 AM
RE: SQL Server Not Returning Data - by bazianm - 06-10-2015, 06:43 AM
RE: SQL Server Not Returning Data - by Blair2004 - 06-09-2015, 01:17 PM
RE: SQL Server Not Returning Data - by Blair2004 - 06-13-2015, 08:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB