Welcome Guest, Not a member yet? Register   Sign In
MySQL, $query->result_array, and NginX
#5

[eluser]cmd276[/eluser]
[quote author="osci" date="1308750272"]Have you forgotten the get?
Code:
$query = $this->db->query("Get The News.")->get();
Also if you forgot it you are not checking if there are any returned rows.[/quote]

Going off of the User's Guide for Database Class, it doesn't mention anything about the '->get()' section. Also, going with I forgot to check for an empty result, it still returns a Server 500 with both things in place.

[quote author="noctrum" date="1308755270"][quote author="osci" date="1308750272"]Have you forgotten the get?
Code:
$query = $this->db->query("Get The News.")->get();
Also if you forgot it you are not checking if there are any returned rows.[/quote]

query() executes the query, get() is only used with AR syntax[/quote]
Not using the Active Record things.


Messages In This Thread
MySQL, $query->result_array, and NginX - by El Forum - 06-22-2011, 01:23 AM
MySQL, $query->result_array, and NginX - by El Forum - 06-22-2011, 02:44 AM
MySQL, $query->result_array, and NginX - by El Forum - 06-22-2011, 04:07 AM
MySQL, $query->result_array, and NginX - by El Forum - 06-22-2011, 04:24 AM
MySQL, $query->result_array, and NginX - by El Forum - 06-22-2011, 09:21 AM
MySQL, $query->result_array, and NginX - by El Forum - 06-22-2011, 11:33 AM
MySQL, $query->result_array, and NginX - by El Forum - 06-22-2011, 04:49 PM
MySQL, $query->result_array, and NginX - by El Forum - 06-22-2011, 06:47 PM
MySQL, $query->result_array, and NginX - by El Forum - 06-22-2011, 07:59 PM
MySQL, $query->result_array, and NginX - by El Forum - 06-22-2011, 11:13 PM
MySQL, $query->result_array, and NginX - by El Forum - 06-23-2011, 12:06 AM
MySQL, $query->result_array, and NginX - by El Forum - 06-23-2011, 12:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB