IgnitedDatatables/Ignited-Datatables — Issue #13: mysql_real_escape_string error on line 290
Author: blyxx86
Created: 2012-03-07 21:22:18+00:00
State: open

I use MSSQL as my database, and have MySQL disabled, so this call was breaking. However, I was able to use the CodeIgniter escape_like_str to fix it.

```php
protected function get_filtering()
{
if ($this->check_mDataprop())
$mColArray = $this->get_mDataprop();
elseif ($this->ci->input->post('sColumns'))
$mColArray = explode(',', $this->ci->input->post('sColumns'));
else
$mColArray = $this->columns;

$sWhere = '';
$sSearch = $this->ci->db->escape_like_str($this->ci->input->post('sSearch'));
//$sSearch = mysql_real_escape_string($this->ci->input->post('sSearch'));
...
```