SQL multi-Keyword Search without if (count ($ newstr) 1) {if the number of elements in the array is 1, query $ sqlselect * fromtb_infowheretitlelike % according to a single condition. $ newstr [0]. % orcontentlike %. $ newstr [0]. % orderbyiddesc;} else {merge query result set for ($ i0; $
SQL multi-Keyword Search without if (count ($ newstr) = 1) {// if the number of elements in the array is 1, query $ SQL = "select * from tb_info where title like '%" according to a single condition ". $ newstr [0]. "% 'or content like' % ". $ newstr [0]. "% 'order by id desc";} else {// merge query result set for ($ I = 0; $
SQL multi-Keyword Search <无>
If (count ($ newstr) = 1) {// if the number of elements in the array is 1, query $ SQL = "select * from tb_info where title like '%" according to a single condition ". $ newstr [0]. "% 'or content like' % ". $ newstr [0]. "% 'order by id desc";} else {// merge query result set for ($ I = 0; $ I