query($sql) or die($db->error); $all = []; $i = 0; while ($data = $result->fetch_assoc()) { $all[$i] = $data; $all[$i]['summary'] = mb_substr(strip_tags($data['content']), 0, 90); $i++; } // die(var_export($all)); $smarty->assign('all', $all); } ```
進階搜尋
120人線上 (37人在瀏覽線上書籍)
會員: 0
訪客: 120