最新回答 / 慕移動8855887
<?phprequire_once'../include.php';$username=$_POST['username'];$password=md5($_POST['password']);$verify=$_POST['verify'];$verify1=$_SESSION['verify'];if($verify==$verify1){$sql="select*from imooc_admin where username='{$username}'and password='{$passw...
2017-08-02
最新回答 / Gemma_Tong
因為程序如果沒有進入到?if (move_uploaded_file($file['tmp_name'], $destination)) 這一步里面去的話,實際上是沒有?uploadedFiles這個變量定義的。那么在return的時候直接返回uploadedFiles就會這樣報錯。建議在return的時候作三元運算。比如?return isset($uploadedFiles) ? $uploadedFiles : null;
2017-08-01