Welcome Guest, Not a member yet? Register   Sign In
Query WHERE
#1

[eluser]georgerobbo[/eluser]
Code:
$query = $this->db->query('SELECT Object_Value FROM heal_sub_content', 'WHERE Object_ID = contact');
        return $query->result_array();

WHERE statement doesn't appear to be working? Is there an alternative method?
#2

[eluser]Dam1an[/eluser]
If you're using the query method, the SQL should all be a single string, with the optional second paramters an array used for query binding
#3

[eluser]georgerobbo[/eluser]
Ah excellent. Thank you very much.




Theme © iAndrew 2016 - Forum software by © MyBB