您当前的位置: 首页 >  php

苗先生的PHP记录

暂无认证

  • 0浏览

    0关注

    190博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

php url+数字,如何渲染到文字或者选中

苗先生的PHP记录 发布时间:2019-08-10 21:43:49 ,浏览量:0

保存在video_label视频标签表中的数据 $channel_list = $this->db->table(‘video_label’)->where(array(‘flag’=>‘channel’))->cates(‘id’);

获取url后面的label $data[‘label_channel’] = (int)input(‘get.label_channel’);

赋值 $this->assign(‘data’,$data); $this->assign(‘channel_list’,$channel_list);

实际运用

如果获取的$data[‘label_channel’] 不在$channel_list中 , 选中全部

             
关注
打赏
1665468453
查看更多评论
0.0369s