有沒有大佬遇到修改頁面 不修改圖片 提交後圖片沒了
-wy
-wy 2018-12-26 17:59:02
0
0
1096

    public function edit(){
        $Article=D('Article');
        $Articler=$Article->find(I(#); ;assign('Articler',$Articler);
        if(IS_POST){
           , 'title');
            $date['desc']=I('desc');               $date['pic']=I('pic');
            $date['content']=I('content');
            $date['cate tmp_name ']!=''){
               $upload = new \Think\Upload();///實例化上傳類別
                     $ upload->exts      =array('jpg', 'gif', 'png', 'jpeg');// 設定附件上傳類型
           上傳根目錄
               $upload->savePath  ='./Uploads/'; // 設定配件上傳(子)目錄
  >$upinfo $ 'pic']) ;
               // 上傳檔案
              ))化$this->error($upload->getError());
               }else {// 上傳成功
$date['pic']=$info['savepath'].$info['savename'];
               }
       }else{

            }
             if($文章->create($date)){
               if($Article->save()){
        
            }else{
#                $this-> #     }else{
                $this-> error($Article- >getError());

            }
           以 return this->assign(' cateres',$cateres);
        $this->display();
    }  






########################################################################

&lt>
<
                  " height="50">
                                 我
                                                            
       
                            < ;/tr>

#

-wy
-wy

全部回覆(0)
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!