不考虑加个在线人数统计功能吗?
By
su-root
at 2016-03-26 • 0人收藏 • 1945人看过
<?php $pw_tmsgs = GetTtable($id); $rt = $db->get_one("SELECT t.tid,t.subject,tm.content,tm.ifconvert FROM pw_threads t LEFT JOIN $pw_tmsgs tm ON tm.tid=t.tid WHERE t.tid=".S::sqlEscape($id)); $rt['content'] = str_replace("\n","<br>",$rt['content']); //* include_once pwCache::getPath(D_P.'data/bbscache/wordsfb.php'); pwCache::getData(D_P.'data/bbscache/wordsfb.php'); foreach ($alarm as $key => $value) { $rt['content'] = str_replace($key,'<span style="background-color:#ffff66">'.$key.'</span>',$rt['content']); }
<script> $.ajax({ url:"ajax.php", type:"post", success:function(result,state) { alert(state); }, complete:function(XMLHttpRequest,textstatus) { alert('请求状态是:'+textstatus); }, timeout:3000, error:function(XMLHttpRequest, textStatus, errorThrown) { alert('出错,状态是:'+textStatus); } }); </script>
发段脚本玩玩
9 个回复 | 最后更新于 2016-03-27
登录后方可回帖
如题