• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.