Welcome Guest, Not a member yet? Register   Sign In
this code give me error 500
#1
Thumbs Down 

please, guys, this code give me error 500 but when i remove this -> result_array() its worked but I don't know when problem

function getCodeForCity($destination
        {
          $result = $this->db->query("SELECT code FROM hotels WHERE MATCH (city_slug) AGAINST ('$destination' IN BOOLEAN MODE)")->result_array();
          return $result;
        }
Reply
#2

please, folks, this code give me blunder 500 however when I eliminate this - > result_array() its worked yet I don't have any idea when issue

work getCodeForCity($destination
Reply
#3

Check the value of `$this->db->query("SELECT code FROM hotels WHERE MATCH (city_slug) AGAINST ('$destination' IN BOOLEAN MODE)")`.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB