-
Yii中运用PHPExcel导出Excel实例代码
[PHP教程] 2022-02-17 13:09:25 149人阅读
文章来给大家介绍在yii框架中利用PHPExcel插件来快速实例导出excel数据的具体方法,有在使用yii的同学不防进入参考一下. 最近在研究PHP的Yii框架,很喜欢,碰到导出Excel的问题,研究了一下,就有了下面的方法. 1、首先在...[详细]
-
PHP里mysqli_affected_rows作用行数返回值
[PHP教程] 2022-02-17 13:09:02 119人阅读
mysqli中关于update操作影响的行数可以有两种返回形式: 1. 返回匹配的行数 2. 返回影响的行数 默认情况下mysqli_affected_rows返回的值为影响的行数,如果我们需要返回匹配的行数,可以使用mysqli_real_connect函数进...[详细]
-
php 导出excel信息实例代码
[PHP教程] 2022-02-17 13:08:40 84人阅读
在php中要导入excel表格我们最简单的就是输入csv文件,还有一种办法就是使用PHPExcel插件来实现,常用的都是使用PHPExcel插件了,它有强大的功能,下面我们来看个实例. 很多网站都有导出数据为excel的功能,最开始想用js...[详细]
-
php解析excel表格程序代码
[PHP教程] 2022-02-17 13:08:14 157人阅读
工作的第一步就是要将数据从excel中取出来,这里我使用到了一个开源php处理excel类:phpexcel,该项目的详细信息 http://phpexcel.codeplex.com/. 我目前使用的是phpexcel1.7.3版本,解压缩后里面有一个PHPExcel和PHPEx...[详细]
-
PHP Excel类读取excel文件并且导进数据库
[PHP教程] 2022-02-17 13:07:37 125人阅读
在一般情况下如果我们要把excel数据库中的数据导入到mysql数据库我们没什么好办法实现了,但有了PHP Excel失控这后一切都变得简单了. 本代码是在thinkphp中开始使用的. 1.引入类,代码如下: Vendor(PHPExcel.PHPExcel)...[详细]
-
处理php5.3不能连接mssql数据库问题
[PHP教程] 2022-02-17 13:07:17 112人阅读
自从php5.3之后系统就不支持mssql_connect这个函数连接了,以前我也讲可以使用com接口来实现,现在我再介绍解决php5.3不能连接mssql数据库另一方法. windows系统下,PHP5.3以上的版本已经不支持mssql扩展. 首先http://m...[详细]
-
php调用MySQL存储过程办法
[PHP教程] 2022-02-17 13:06:56 183人阅读
php与mysql是天生的一对,下面我来介绍在php中怎么调用mysql存储过程并执行返回结果,下面我总结了一些常用的php调用MySQL存储过程的方法,有需要了解的同学可参考. MySQL从5.0开始才引入存储过程,反正以前做应用的时候...[详细]
-
php信息库备份类程序代码
[PHP教程] 2022-02-17 13:06:25 117人阅读
今天没事收集了两款php数据库备份程序,这里可以完成功能有:1.备份指定数据表、2.打包成zip文件、3.发送到指定邮箱地址,基本功能就这些了. 下面看下使用方法,代码如下: ?php error_reporting(0);//消灭万恶的php报警...[详细]
-
php PDO 使用方法详解
[PHP教程] 2022-02-17 13:05:42 64人阅读
PDO::exec:返回的是int类型,表示影响结果的条数. PDOStatement::execute 返回的是boolean型,true表示执行成功,false表示执行失败,这两个通常出现在如下代码: $rs0 = $pdo-exec($sql); $pre = $pdo-prepare($sql); $r...[详细]
-
PHP把MSSQL数据导入到MYSQL实例
[PHP教程] 2022-02-17 13:05:25 139人阅读
最近需要把一个以前的asp网站转换成php的,但php是与mysql而我的asp与mssql的,结果就需要把mssql数据导入到mysql数据库了,下面我自己写了一个实例还抄了一个实例都不错. 实例一,代码如下: ?php //国内的PNR码连接 $ho...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]