query($sql) or die($db->error); $all = array(); $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); $smarty->assign('bar', $bar); $smarty->assign('total', $total); } ```
進階搜尋
49人線上 (12人在瀏覽線上書籍)
會員: 0
訪客: 49