$status = 1;
$id = 2;
$criteria = new CriteriaCompo(new Criteria('status', $myts->addSlashes(intval($status))));
$criteria->add(new Criteria('id',$id));
$sql = "select * from table ".$criteria->renderWhere();
echo 出來變成- select * from table where status='1' and id=
'2'
請問該如何把
'2'的2個單引號去掉?謝謝。