[4] ErrorException in 3157a8ca142d1fc8dd3688eaa9e95307.php line 599

语法错误: unexpected 'ach' (T_STRING), expecting '('

  1. $_wheresql = '';
  2. $_pageurlarr = [];
  3. if ($_sql != -1) {
  4. //拼接SQL语句
  5. $_db = db('diyfield');
  6. $_sqlstrlist = explode(" ", $_sql);
  7. $_sqlstr = ' ';
  8. if ($_sqlstrlist) {
  9. foreach ($_sqlstrlist as $key1 => $value1) {
  10. if (is_numeric($value1)) {
  11. $_fieldname = $_db->where(['id'=>$value1])->value('field');
  12. if ($_GET[$_fieldname] != '不限' && $_GET[$_fieldname] != '') {
  13. $_filelist = explode(',', $_GET[$_fieldname]);
  14. $_instr = "";
  15. foreach ($_filelist as $key2 => $value2) {
  16. if ($value2) {
  17. $_instr = $_instr ? $_instr." OR ($_fieldname LIKE '%".$value2."%')" : "($_fieldname LIKE '%".$value2."%')";