登錄 登錄 注冊(cè) 立即注冊(cè) 忘記密碼 找回密碼 購買邀請(qǐng)碼 misc.php?mod=buyinvitecode JS跳轉(zhuǎn) onclick="window.location.href='home.php?mod=mobile&do=friend';" JS更換class的名稱 document.getElementById('idname').className='a'; document.getElementById('idname').style.display='block'; document.getElementById("idname").style.marginTop="30px"; 批量替換超鏈接:href="[^"]*" 過濾DZ代碼: preg_replace ("/\[[a-z][^\]]*\]|\[\/[a-z]+\]/i",'',preg_replace("/\[attach\]\d+\[\/attach\]/i",'',$message)); ……………………………………………………………………………………………………………………………………………………………… 調(diào)用單個(gè)數(shù)據(jù) $qishi = DB::result(DB::query("SELECT qi FROM ".DB::table('jiangchi')." WHERE id = '1'")); 調(diào)用統(tǒng)計(jì)數(shù)據(jù) $qishi = DB::result(DB::query("SELECT count(*) FROM ".DB::table('jiangchi')." WHERE id = '1'")); 單數(shù)據(jù)表調(diào)用 $perpage = 20; $curpage = empty ( $_GET['page'] ) ? 1 : intval ( $_GET['page'] ); $start = ($curpage-1)*$perpage; $askcount = DB::result(DB::query("SELECT COUNT(*) FROM ".DB::table('forum_thread')." WHERE fid = '2' AND authorid > 1 AND FROM_UNIXTIME(dateline, '%Y%m%d') = '$jintian'")); //$asklist $asklist = array(); if ($askcount) { $query = DB::query("SELECT * FROM ".DB::table('forum_thread')." WHERE fid = '2' AND displayorder > -1 ORDER BY tid ASC LIMIT $start,$perpage"); while ($value = DB::fetch($query)) { $asklist[] = $value; } } $multi = multi($askcount, $perpage, $curpage, "portal.php?mod=topic&topic=ask"); 多數(shù)據(jù)表調(diào)用 $perpage = 40; $curpage = empty ( $_GET['page'] ) ? 1 : intval ( $_GET['page'] ); $start = ($curpage-1)*$perpage; $acount = DB::result(DB::query("SELECT count(*) FROM ".DB::table('forum_forum')." b LEFT JOIN ".DB::table('forum_forumfield')." bf ON bf.fid=b.fid WHERE b.type='sub' AND b.status = 3 AND bf.icon != ''")); //$alist $alist = array(); if ($acount) { $query = DB::query("SELECT bf.*, b.* FROM ".DB::table('forum_forum')." b LEFT JOIN ".DB::table('forum_forumfield')." bf ON bf.fid=b.fid WHERE b.type='sub' AND b.status = 3 AND bf.icon != '' ORDER BY bf.shoplevel DESC, b.commoncredits DESC, bf.fid DESC LIMIT $start,$perpage"); while ($value = DB::fetch($query)) { $alist[] = $value; } } $multi = multi($acount, $perpage, $curpage, "這里填寫跳轉(zhuǎn)地址"); 前臺(tái)數(shù)據(jù)顯示 $value[authorid] 取數(shù)據(jù)表中符合條件的第一條數(shù)據(jù) $app=array(); $app=DB::fetch_first("select * from ".DB::table('home_diy_center')." where id='{$id}'"); 人性化時(shí)間戳 截取字符字?jǐn)?shù) 過濾DISCUZ代碼 preg_replace ("/\[[a-z][^\]]*\]|\[\/[a-z]+\]/i",'',preg_replace("/\[attach\]\d+\[\/attach\]/i",'',$message)); 寫入數(shù)據(jù)庫 if(submitcheck('tijiao')) { $setarr = array( 'tid' => $_GET['topicid'], 'name' => $_POST['name'], 'position' => $_GET['position'], 'dateline' => $_G['timestamp'], ); DB::insert('forum_poststick', $setarr, 1); $query = DB::query("UPDATE ".DB::table('forum_thread')." SET stickreply='1' WHERE tid='$tid'"); $query = DB::query("DELETE FROM ".DB::table('forum_post')." WHERE pid='$pid'"); showmessage('成功的提示信息', "forum.php?mod=viewthread&tid=$tid"); } 表單提交:
最低獎(jiǎng)金:  最高獎(jiǎng)金:  
以下兩個(gè)時(shí)間格式是對(duì)等關(guān)系 date("Ymd",time()); 20150212 FROM_UNIXTIME(dateline, '%Y%m%d') 前者用于PHP,后者用于數(shù)據(jù)庫調(diào)用的字段的格式化 調(diào)用圖片附件 數(shù)據(jù)庫循環(huán)嵌套調(diào)用 $slide[name] ucenter無法登錄: 打開uc_server/model/admin.php 找到第22行的 $this->cookie_status = 0; 改成 $this->cookie_status = isset($_COOKIE['sid']) ? 1 : 0; 無刷新切換li標(biāo)簽并且同時(shí)加載框架頁面:
快速發(fā)帖 發(fā)布新話題 常用詞匯 select 選擇 count 總數(shù) table 表 where 條件 result 結(jié)果 perpage 每頁 curpage 當(dāng)前頁 update 更新 delete 刪除 insert 寫入 dateline 日期 time 時(shí)間 echo 輸出 multi 分頁函數(shù) if 如果 else 否則 elseif start 起始 limit 限制 limit 10 DESC 倒序 ASC 正序 www.banban.so - Database Error

男的舔女的下面视频在线播放-少妇愉情理仑片高潮日本-久久久久久国产一区二区三区-麻豆精品一区二区综合-国产精品超碰在线观看-网红极品女神精品视频在线-国产亚洲综合777-高清性视频一区二区播放-中文字幕第一页亚洲天堂

Discuz! Database Error

(0)
SELECT phone FROM mobile_login_connection WHERE uid = '5235'

PHP Debug

No.FileLineCode
1forum.php73discuz_database::query(%s)
2source/class/discuz/discuz_database.php136db_driver_mysql->query(%s, false, false)
3source/class/db/db_driver_mysql.php153db_driver_mysql->halt(false, %d, %s)
4source/class/db/db_driver_mysql.php224break()
www.banban.so 已經(jīng)將此出錯(cuò)信息詳細(xì)記錄, 由此給您帶來的訪問不便我們深感歉意. Need Help?