今天重新安装mysql时遇到“mysql服务无法启动”问题 从Mysql官网下载mysql installer(https://cdn.mysql.com//Downloads/MySQLInstaller/mysql-installer-community-5.7.18.1.msi),一路安装下来 ...
分类:
数据库 时间:
2017-06-05 00:31:21
阅读次数:
233
<body> <table border="1" width="100%"> <tr> <td>代号</td> <td>姓名</td> <td>性别</td> <td>民族</td> <td>生日</td> <td>操作</td> </tr> <?php $db =new MYSQLi("local ...
分类:
数据库 时间:
2017-06-04 10:41:43
阅读次数:
235
php连接mysql我有文章已经写过了,这篇文章主要是介绍从mysql中查询出结果之后怎么输出的问题。 一:mysqli_fetch_row(); 查询结果:array([0]=>小王) 查询: [php] view plain copy while ($row = mysqli_fetch_ass ...
分类:
数据库 时间:
2017-06-01 16:52:40
阅读次数:
248
一、验证MySQL扩展是否开启 1.查看php信息 2.检查扩展是否已经加载 3.检查函数是否存在 4.得到当前已经开启的扩展 ...
分类:
数据库 时间:
2017-06-01 10:37:47
阅读次数:
219
今天,主要写一下面向过程风格,连接数据库事例! <?php$conn = mysqli_connect("localhost", "root", "", "php_test"); //判断连接数据库是否成功if (mysqli_connect_error($conn)) { die("连接失败:". ...
分类:
Web程序 时间:
2017-05-27 19:09:00
阅读次数:
209
没有MySQL选项: 思路首选想到httpd: 一些问题都会从日志中反映出来: 问题解决: ...
分类:
数据库 时间:
2017-05-26 20:41:34
阅读次数:
2789
PHP5.2 以前:autoload, PDO 和 MySQLi, 类型约束PHP5.2:JSON 支持PHP5.3:弃用的功能,匿名函数,新增魔术方法,命名空间,后期静态绑定,Heredoc 和 Nowdoc, const, 三元运算符,PharPHP5.4:Short Open Tag, 数组简 ...
分类:
Web程序 时间:
2017-05-25 22:17:07
阅读次数:
353
学习php连接mysql,采用mysqli方式连接遇到的问题: Call to undefined function mysqli_connect() 或 Class 'mysqli' not found 总的来说就是找不到扩展插件php_mysqli.dll php连接mysql有3种扩展插件方式 ...
分类:
数据库 时间:
2017-05-25 15:49:52
阅读次数:
221
function JSONQuery($sql,$type=1) { $db = new MySQLi($this->host,$this->uid,$this->pwd,$this->dbname); $r = $db->query($sql); if($type == 1) { return j ...
分类:
Web程序 时间:
2017-05-24 10:01:56
阅读次数:
177