亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

為什么我根據id傳值。但是在頁面上獲取不到呢。路徑也是獲取不到

為什么我根據id傳值。但是在頁面上獲取不到呢。路徑也是獲取不到

PHP
sun3660873 2016-08-05 09:43:55
沒用關聯。是有一個pid <foreach name="res" item="re"> <ul class="mui-table-view"> <li class="mui-table-view-cell"><a href="{$news}?pid={$re.tagid}">{$re.tagname}</a> </li> </ul> </foreach>?????????????public function index(){? ? ? ? $cate=M("cmseasy_b_tag");? ? ? ? $result1=$cate->select();? ? ? ? var_dump($result1);? ? ? ? $this->assign("result1",$result1);? ? ? ? $this->assign("news",U("News/index"));? ? ? ??? ? ? ? $this->display();? ? }public function index(){? ? ? ? $details=M("cmseasy_announcement");? ? ? ??? ? ? ? $id=$_GET['pid'];? ? ? ? $result=$details->where("pid='".$id."'")->select();? ? ? ? $this->assign("result",$result);? ? ? ?? ? ? ??? ? ? ? $this->display();? ? }
查看完整描述

1 回答

?
封不羈

TA貢獻16條經驗 獲得超9個贊

你assign賦的變量名和頁面上foreach使用的變量名不一樣當然沒有什么東西顯示

查看完整回答
反對 回復 2016-08-14
  • 1 回答
  • 0 關注
  • 1866 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號