How do I get the restoname from the db that has apostrophe on it? using the mysql or php.
The code: public function searchRestaurant($searchinfo){ $sql = "SELECT * FROM restaurants WHERE restoname = '$searchinfo' OR restocuisines = '$searchinfo'"; $result = $this->db->query($sql); $result = $result->result('array');
return $result;
}