如果不選擇文件就點(diǎn)擊上傳會發(fā)生錯(cuò)誤: Notice: Undefined variable: uploadFiles
可把
return $uploadFiles;
改為
return $uploadFiles = empty($uploadFiles)? null : $uploadFiles;
可把
return $uploadFiles;
改為
return $uploadFiles = empty($uploadFiles)? null : $uploadFiles;
2017-04-30
可以在關(guān)鍵頁面前加:
<?php
require_once '../include.php';
checkLogined();
?>
<?php
require_once '../include.php';
checkLogined();
?>
2017-04-30
$page = empty($_REQUEST['page'])? 1 : intval($_REQUEST['page']); // 當(dāng)前頁
2017-04-29
大家若遇到值為定義時(shí),可使用下面的方法:
$id = empty($_REQUEST['id'])? null : $_REQUEST['id'];
$id = empty($_REQUEST['id'])? null : $_REQUEST['id'];
2017-04-29
// 禁止顯示PHP警告提示
// error_reporting(0);
// @是忽略警告(Warning)的意思
// error_reporting(0);
// @是忽略警告(Warning)的意思
2017-04-28
走到這里了,代碼也實(shí)現(xiàn)到了這里,不想繼續(xù)往下走了,代碼已經(jīng)開始重復(fù)重復(fù)的了,不過圖片模塊那一章,過多幾天再來看,心累了,10個(gè)小時(shí)的視頻,現(xiàn)在已經(jīng)是第四天了,還沒學(xué)完.....圖片模塊過多幾天再來看看....等著我來實(shí)現(xiàn).....
2017-04-21
走到這里,終于把之前的功能都實(shí)現(xiàn)了,代碼和老師的有些偏差,不過功能卻都能實(shí)現(xiàn)....
2017-04-20