Correct Use of the Escape String
Issue #40
new
Hi
Have been using your great class file for awhile but have problems with commas in data EG O’Neill
So have been trying to get it to work, however cannot work it out where to use it..
Your WIKI shows..
$string = "where 's a and 's" ;
echo $db->escape($string);
// Produces: where \'s a and \'s
Yes, I changed $db to $mysql
My code is
$data = $_POST[data];
$data1 = array(‘XXXX'=>$XXXX,’YYYY'=>$YYYY,’ZZZZ'=>$ZZZZZZ);
$data2 = array_merge($data, $data1);
$where = array('id'=>$_POST['id']);
$mysqli->where($where)->update('details', $data2);
Any assistance would be highly valued
Thanking you in advance
Gary