Time of Update: 2016-06-23
有一句條件不會寫。 $username=trim($_POST['username']); $password=trim(&_POST['pass']); //declare the SQL statement that will query the database $query = "select top 6 * from WEB_VIEW where DNBH='$username' order by SFMonth desc "; //execute the
Time of Update: 2016-06-23
PHP 項目在IE 和 Firefox中不相容的問題要怎麼解決....有圖有真相 回複討論(解決方案) css、js 相容問題 有圖也沒真相 有碼才有真相 css、js 相容問題 有圖也沒真相 有碼才有真相 一般是怎麼調試的呢...CSS樣式我寫好了,再改估計就是自己不想要的效果了... firefox 下用firebug調試不錯。可以一試。 樣式表中的一些特殊屬性需要專門針對 ie 書寫同名但前面有底線的屬性
Time of Update: 2016-06-23
個人認為,gif文是逐幀傳遞的(未驗證,不過看網頁gif圖片載入是逐幀的) 那麼是否可以寫一個程式,根據使用者的相應來動態產生圖片幀? 比如 使用者---get a.gif------------->伺服器 使用者 使用者 使用者 使用者-post gif.php?str="test"->伺服器 使用者 使用者 使用者 使用者-post gif.php?str="hi"--->伺服器 使用者 使用者 ..... 使用者
Time of Update: 2016-06-23
如果沒有使用者訪問discuz,計劃任務還會觸發嗎?誰能簡單講一講他的原理啊? 回複討論(解決方案) 不會觸發 Discuz計劃任務解析 不會觸發 Discuz計劃任務解析 哦,還真是,必須得使用者訪問或者蜘蛛訪問才能觸發啊,這就奇怪了,有個每日貼文數清零的計劃任務,如果,零點左右沒人訪問的話,計劃任務就得順延強制了,是不是這樣? 用計劃任務 到時訪問下自己
Time of Update: 2016-06-23
while後。如何賦值給1個變數。 echo ""; while($rs=$result->fetch_assoc()){ echo "".$rs['name']."";//迴圈體,迴圈所有文章 } echo "" 回複討論(解決方案) $s = ''; while($rs=$result->fetch_assoc()){ $s .= "".$rs['name']."";//迴圈體,迴圈所有文章 } echo $s;
Time of Update: 2016-06-23
請問一下: 我在WAMPSERVER 下安裝ECMALL時,頁面出現如: [img=http://img.blog.csdn.net/20130503091617760][/img] ( ! ) Deprecated: Assigning the return value of new by reference is deprecated in D:\wamp\www\_ecmall\eccore\controller\app.base.php on line 14
Time of Update: 2016-06-23
網站上一些連結點擊之後出現以下錯誤。 Bad Request ???????????????????????? Your browser sent a request that this server could not understand. Apache/2.2.8 (Win32) PHP/5.2.6 Server at www.gzsxj.com Port 80 急救,老大那邊急了。希望大蝦們幫幫忙,給出指導意見 回複討論(解決方案)
Time of Update: 2016-06-23
照舊,發兩個自用的“小”東西,給點改善意見的多些分,純接分的巡查管理員應該會刪貼的,嘿嘿 註:因為是自用,傳入基本是格式正規的,所以沒有做容錯,這個用者自理 //搜尋檔案中的字串,返回所在行的行號 $lines=new ArrayIterator(file(檔案名稱));$regex = 搜尋用的正則; //必須是正則,因為下面的迭代器是正則迭代器$regexFilter = new RegexIterator($lines, $regex,
Time of Update: 2016-06-23
$aaaa = "image/1.jpg|image/2.jpg|image/3.jpg" 請問一下,怎麼把用"|"格開的字串,猜開? 猜成下面的字串. $a1 = "image/1.jpg"; $a2 = "image/2.jpg"; $a3 = "image/3.jpg"; 請詳細一些,謝謝. 回複討論(解決方案) list($a1, $a2, $a3) = explode('|', $aaaa); explode list($
Time of Update: 2016-06-23
$content ='The North Face Size Chart Breathe deeply and slow your racing brain in the Be Calm Tank.VaporWick technology sweeps moisture away from your skin for quick evaporation to leave you feeling spectacular.Structured V-panel neckline.Racerback
Time of Update: 2016-06-23
mysq企業版如何授權的?註冊碼?還是什嗎? 回複討論(解決方案) mysql 是開源軟體,遵循GPL通用公用許可證 mysql 是開源軟體,遵循GPL通用公用許可證 看高手發的貼子就是長見識,知道了GPL 企業版可以獲得官方的支援服務。 功能不見得比社區版多,但是穩定。 社區版是企業版的升級測試版。 額 開源的,不收任何費用!~ 如何下載企業版? mysql的備份與恢複,定期備份,增量備份,一般用什麼工具啊?謝謝
Time of Update: 2016-06-23
有個頁面的功能是進行資料運算但是耗時時間較長,經常是沒有等計算結果出來前就報讓儲存此頁面的對話方塊,請問如何解決此問題(不要彈出儲存頁面的對話方塊,無論多長時間都繼續等待) 回複討論(解決方案) 頁頭加上:set_time_limit(0) ; 看看 不行的,和之前一樣 對話方塊時哪來的? 貼個看看
Time of Update: 2016-06-23
請各位大俠幫忙。我利用php程式插入韓文txt文檔,頁面列印數組和sql都正常顯示。 利用iconv('euc-kr', 'utf-8//IGNORE',$data['name']) 進行轉碼,換過ucs-2、iso-8859-1等都無法顯示正常。 回複討論(解決方案) 你並沒有指定操作資料庫的字元集 mysql_query("set names utf8"); 已經指定了,還試過mysql_query("set names euckr");
Time of Update: 2016-06-23
digui函數程式功能為通過遞迴正則匹配數字 如果是數字就儲存到新數組中儲存,最後返回所有包含數位元素的數組 $array=array( "22", "1234", array("a", array("aab","00000","aaa","222000","3333000"), "aa","999","aaaa"), "d", "567", "33", "dsf"); $fl_array=array();
Time of Update: 2016-06-23
http://www.xmfoodcn.com/system/login.php 輸入完帳號密碼 點擊登入 就沒反應了。 US:admin pw:admin888 後台密碼。 有能力的大神幫個忙給看看唄 ,網上淘的碼 /* ======= >>> KingCMS * @License http://www.KingCMS.com/license/ * * @Link http://www.KingCMS.
Time of Update: 2016-06-23
有個上傳圖片的功能 如何每次把上傳的圖片大小控制在200K以下? 只能更改圖片的尺寸嗎? 其實圖片的像素和尺寸和清晰度等都有什麼聯絡。。 回複討論(解決方案) php.ini裡有upload_max_filesize = 128M 可以設定大小吧!而且在html頁面也可以設定中的value來限制大小 無壓縮圖片大概一個像素3位元組(RGB),jpg約為1/6大小,當然可以更小,但失真更大就是了 可以重採樣使用更大壓縮比減少位元組數,但一般伺服器不做這事,
Time of Update: 2016-06-23
$user_pattern = "/ \@(.+?)([\s|:]|$ )/"; $str = preg_replace($user_pattern, ' ${1} ', $str ); 請問怎麼將${1}的中文進行urlencode函數轉碼?我用下面這樣不行,都當成字串了。 $str = preg_replace($user_pattern, ' ${1} ', $str ); 回複討論(解決方案) 用 preg_replace_callback()
Time of Update: 2016-06-23
就是這些被紅字的數字,每行3個,所有偶數行的數字應該怎麼通過數學的方法算出來? 取餘的話取的是縱列的數字,怎麼樣能把紅字的偶數行給表達出來? 回複討論(解決方案) {wf:if $smarty.section.product.rownum eq 4 or $smarty.section.product.rownum eq 5 or $smarty.section.product.rownum eq 6 or $smarty.section.product.rownum eq
Time of Update: 2016-06-23
$yjj=key($_GET); $Logi = file("./data/list.txt", FILE_IGNORE_NEW_LINES); foreach( $Logi as $Key => $Val ){ list($num, $title) = explode ( "|" , $Val ); if($title==$yjj) { $Comment = $_POST['txt'] ; $filename ="Item".($num).'.txt';
Time of Update: 2016-06-23
function Write_FileFun_new($filename,$filedir, $htmldata = '') {if(!is_dir($filedir)) {mkdir($filedir, 0777);}$htmlfile = $filedir.$filename;if($fp = fopen($htmlfile, 'wbt')) {fwrite($fp,$htmldata);fclose($fp);} else {echo "Can not write to files,