国产精品成人VA在线观看,亚洲日韩在线中文字幕综合,亚洲AV电影天堂男人的天堂,久久人人爽人人爽人人av东京热

News新聞

業(yè)界新聞動(dòng)態(tài)、技術(shù)前沿
Who are we?

您的位置:首頁      樂道系統(tǒng)FAQ      thinkphp實(shí)現(xiàn)把數(shù)據(jù)庫中的列的值存到下拉框中的方法

thinkphp實(shí)現(xiàn)把數(shù)據(jù)庫中的列的值存到下拉框中的方法

標(biāo)簽: 發(fā)布日期:2017-01-20 00:00:00 261

1. 先去數(shù)據(jù)庫中查值,查詢整個(gè)數(shù)據(jù)表,結(jié)果為二維數(shù)組。

 $project = M("project");
 $cell = $project->where(array('status'=>1))->order("id desc")->select();
 //var_dump($cell);
 $this->assign('cell',$cell);