-
php连接mysql提醒Call to undefined function m
[PHP教程] 2022-02-17 13:24:09 134人阅读
今天在windows中配置了php mysql环境,很高兴测试一段代码结果提示Call to undefined function mysql_connect()这证明数据库配置不成功,代码如下: ?php $conn = mysql_connect(localhost,root,password); var_dump($c...[详细]
-
PHPEXCEL的用法和简介
[PHP教程] 2022-02-17 13:23:28 117人阅读
PHPEXCEL是一个用来生成excel的php插件,他可以很方便的对excel数据进行操作,如:生成excel,修改excel数据等等. 一、PHPEXCEL简介 PHPEXCEL提供了一系列的API,能够解析与生成excel,pdf之类的文档. PHPEXCEL虽然强大,不...[详细]
-
phpmyadmin连接mysql出现2002服务器无响应
[PHP教程] 2022-02-17 13:23:06 138人阅读
昨天在使用phpmyadmin连接mysql时出现了#2002 服务器没有响应,或者本地 MySQL 服务器的套接字没有正确配置,但我利用php连接没有问题如下: 错误:mysql返回: #2002 - 服务器没有响应(或者本地 mysql 服务器的套接字没...[详细]
-
php配置mysql和怎么测试配置数据库成功
[PHP教程] 2022-02-17 13:22:44 145人阅读
如果你是初次配置 php mysql apache的话,我们要怎么测试php连接数据库成功了,只要创建一个test.php文件,然后把下面代码保存到文件,代码如下: ?php $link=mysql_connect(localhost,root,12345); //12345改成你的mysql...[详细]
-
PHP正确配置mysql 解析教程
[PHP教程] 2022-02-17 13:22:16 50人阅读
php将可以正常的和apache结合,并且常见的诸如:PHP Warning: PHP Startup: Unable to load dynamic library、Fatal error: Call to undefined function mysql_connect() 错误. 不过今天在弄一个CMS时还是出现了一个不...[详细]
-
php mssql扩展SQL查询中文字段名解决办法
[PHP教程] 2022-02-17 13:21:49 179人阅读
一、问题: 数据库是MS SQLServer2000,要把SQLServer2000里的一张表的数据导入MySQL5,其中SQLServer2000表的字段以简体中文命名(强烈建议不要以中文做为字段名),其实操作就是对SQLServer查询记录,插入到MySQL里,选择...[详细]
-
php中完成xml与mysql数据相互转换代码
[PHP教程] 2022-02-17 13:21:02 144人阅读
本文章提供了一个mysql2xml转换类,可以快速的把xml转换成mysql同时反之也可以把mysql转换成xml,下面看代码. mysql2xml.php类文件,用于备份MySQL数据的,代码如下: ?php class MySQL2XML { protected $conn; protected...[详细]
-
php保存中文sql server 2008里发现乱码
[PHP教程] 2022-02-17 13:20:25 102人阅读
今天使用php操作数据库时发现插入SQL Server 2008数据库里的中文字段出现乱码,下面是我一开始时的一些情况. 运行这条sql语句,发现执行不成功,用sqlsrv_errors()函数来输出错误信息,得到如下结果: Array ( [0] = Arra...[详细]
-
phpMyAdmin配置登录用户名和密码教程
[PHP教程] 2022-02-17 13:19:27 120人阅读
本文章来给大家介绍在phpmyadmin配置mysql登录管理密码,下面我以root用户为实例来给各位同学介绍介绍,有需要了解的朋友可参考. phpMyAdmin配置文件在libraries下的config.default.php中,主要配置如下: 一般的话,如果...[详细]
-
PHPExcel读取excel并导进mysql数据库代码
[PHP教程] 2022-02-17 13:19:05 54人阅读
本文章来给大家介绍一款PHPExcel读取excel并导入数据库代码实现,有需要了解的朋友可参考,这里我们介绍的是读取表格之后再创建mysql连接,然后保存到mysql数据库. PHPExcel是相当强大的 MS Office Excel 文档生成类库,...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]