摘要:
先看html加个表单,注意这里的action 路径要选 对。 图片宽度: 图片长度: 然后在控制器里加如下代码:function add_img(){ if($_POST['width']&&$_POST['he... 阅读全文
摘要:
注意:要先在配置文件里配置如下代码:'配置值' /* 数据库设置 */ 'APP_DEBUG'=> true, 'SHOW_PAGE_TRACE'=>true, 'DB_TYPE' => 'mysql', // 数据库类型 'DB_... 阅读全文
摘要:
total = $_total ? $_total : 1; $this->pagesize = $_pagesize; $this->pagenum = ceil($this->total / $this->pagesize); $th... 阅读全文