Welcome Guest, Not a member yet? Register   Sign In
Can´t select data PDO with CI 2.2.1
#6

(04-08-2015, 05:36 AM)Jacker Wrote:
(04-08-2015, 05:19 AM)Avenirer Wrote: do a...


Code:
print_r($query->result());

Yeah did that earlier. It is empty. Here is the query result (print_r($query))

print_r($query) is not the same as print_r($query->result()). Nothing in $query will actually be populated with information from the database until you call a method to retrieve/verify data, such as result() or num_rows().
Reply


Messages In This Thread
Can´t select data PDO with CI 2.2.1 - by Jacker - 04-08-2015, 04:58 AM
RE: Can´t select data PDO with CI 2.2.1 - by mwhitney - 04-13-2015, 08:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB