摘要: 普通上传图片的代码段RefundController->actionUploadImage() public function actionUploadImage(){ include_once(ROOT . '/gb_php/upload.class.php'); $oUpload = new U 阅读全文
posted @ 2017-03-10 13:28 郑彦彬 阅读(208) 评论(0) 推荐(0) 编辑
摘要: php操作Excel 1.new PHPExcel对象$objPHPExcel = new PHPExcel(); 2表的初始化设置$objPHPExcel->getProperties()->setCreator($project_info['chief_name']) //创建人 ->setLa 阅读全文
posted @ 2017-03-10 13:27 郑彦彬 阅读(677) 评论(0) 推荐(0) 编辑
摘要: $sql = 'SELECT * FROM to8to_worker_item limit 10'; $res = Yii::app()->db->createCommand($sql)->queryAll(); 这是yii1中写sql语句来查询数据库的写法,queryRow()方法只查一条,查询结 阅读全文
posted @ 2017-03-10 11:51 郑彦彬 阅读(509) 评论(0) 推荐(0) 编辑