mysql使用where条件语句中文引号转义

一、AND查询语句;

$row = $db->queryall("select achieve_id,category_id,category_name,member_depart,member_name,member_id,member_scan,user_id,user_name,entry_show,achieve_accurate,achieve_grade,from_unixtime(achieve_time) as achieve_time from " . $db->table('achieve') . " where category_id = " . $interact . " AND achieve_grade = \"" . $achieve_grade . "\" order by achieve_id ASC");

二、LIKE搜索语句;

$row = $db->fetchall('store', 'store_id,store_name,store_province,store_city,store_area,store_check,trade_name', '', ' store_id DESC', $startI . ',' . $pagenum);

你可能感兴趣的:(php,漏刻有时)