-
php和mysql删除指定编号的员工信息
[PHP教程] 2022-02-16 16:26:42 125人阅读
利用php提交员工编号给mysql,然后由mysql把数据接受并利用delete进行数据删除操作了,下面我来给大家分享几个例子. delete语句的示例: delete from friends where user_name = simaopig; 语法结构中,我们就可以看出,...[详细]
-
PHP不支持socket_connect函数开启方法
[PHP教程] 2022-02-16 16:26:18 95人阅读
socket_connect函数在php默认安装是不给支持的,如果要使用它我们需要在php.ini中进行简单的开启,下面我们一起来看看吧. linux系统中开启socket_connect方法 #cd /home/php/ext/sockets #/server/php/bin/phpize #./c...[详细]
-
php环境本地用ip连接mysql响应快,用localhost连
[PHP教程] 2022-02-16 16:25:52 85人阅读
今天碰到一个连接mysql的怪问题,我在php 环境本地用ip连接mysql响应快,用localhost连接慢,后来百度了一下整理了一些解决办法,大家一起来看看. 很长时间了,本地php环境,用localhost连接mysql时,只要访问有查询数据库...[详细]
-
php完成redis数据库指定库号迁移
[PHP教程] 2022-02-16 16:25:24 137人阅读
下面来一个朋友写的php实现redis数据库指定库号迁移,希望例子能给各位带来帮助. redis普通的数据库迁移,只能整个redis save,或者利用主从,当然也可以安装一个redis-dump,不过比较麻烦,这里提供一种php的脚本,实现指...[详细]
-
php向mysql写进数据例子
[PHP教程] 2022-02-16 16:24:59 73人阅读
我们要实现通过php调用sql把数据写入到mysql数据库是非常的简单的我们只要三就步可以实现了,下面来给大家整理php向mysql写入数据的例子. PHP向MySQL数据库中写入数据有三个步骤: 1,PHP和MySQL建立连接关系 2,打开M...[详细]
-
php导进excel文件入mysql数据库例子
[PHP教程] 2022-02-16 16:24:24 115人阅读
php导入excel文件入mysql数据库我们是需一借助一个phpexcel类文件了,有了这个类文件我们就可以快速简单的导入excel到mysql数据库中,下面来给大家整理一个例子,希望能对大家有帮助. 导入前我们需要先准备一个数据库,s...[详细]
-
php SQLite数据库的配置办法详解
[PHP教程] 2022-02-16 16:23:40 53人阅读
SQLite数据库安装好之后我们只要在php.ini中把 ;extension=php_pdo_sqlite.dll 前面的;取消掉就可以了,下面我来给大家简单的介绍一下吧。 SQLite数据库的配置 1.打开php.ini 2.启用extension=php_sqlite.dll扩展(...[详细]
-
PHP连接mysql数据库乱码解决方法
[PHP教程] 2022-02-16 16:23:15 102人阅读
php连接mysql中文查询乱码问题解决非常的简单的,因为这个是我们文档编码与数据库编码不统一所导致的,解决办法有许多下面来给各位总结一下. 测试环境,mysql编码为uft-8,mysql版本为mysql5.X,php版本为php 5.X 解决办...[详细]
-
php google地图应用实例代码
[PHP教程] 2022-02-16 16:22:33 92人阅读
function selected ( $param , $value ) { if ( $param == $value ) print SELECTED ; } # Collect any form data to control the display $scale = 10 ; $maptype = G_NORMAL_MAP ; if ( $_REQUEST [ scale ]) $sca...[详细]
-
php+ajax文章自动保存代码实例方法
[PHP教程] 2022-02-16 16:22:13 184人阅读
php+ajax文章自动保存代码实例方法主是要方便用户,提高用户体验,我们就是用ajax把数据保存一个临时数据,像csdn一样,他可以自动保存用户的数据,这样就是掉电,出现意外你编辑的数据都不人被丢失. 这是自动保存草稿的核...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]