Welcome Guest, Not a member yet? Register   Sign In
Problems upgrading my cl app

I have started a new project using cl, I have literally copied a function from a previous build which was cl 1.7.2, I recently downloaded and started to use cl 2.1.0 as I read somewhere it is the most stable version. I have tried putting a search feature into the new build copied accross from my old project and I'm getting an error thrown back on my sql queries.

Can anyone answer how to solve this problem as its driving me mad how to fix the error as it seems to be no fault of my own...


Fatal error: Call to undefined method CI_DB_mysql_driver::orlike() in C:\wamp\www\vmy-project\application\models\mcart.php on line 62

Code from MCart.php

    $Q = $this->db->get('stones');
     if ($Q->num_rows() > 0) {
      foreach ($Q->result_array() as $row) {
      $data[] = $row;
    return $data;

It seems to hault at the orlike statement..

Finally I have the db on autoload..

Any help would be appreciated...

[eluser]Mauricio de Abreu Antunes[/eluser]
This function is identical to the one above, except that multiple instances are joined by OR:

$this->db->like('title', 'match');
$this->db->or_like('body', $match);

// WHERE title LIKE '%match%' OR body LIKE '%match%'

Note: or_like() was formerly known as orlike(), which has been removed.

Source: http://ellislab.com/codeigniter/user-gui...tml#select

That should be

Wow simply an underscore difference, couldn't find that answer anywhere had me stumped for a while, chears guys...

Theme © iAndrew 2016 - Forum software by © MyBB