
php+mysql
seuwang
这个作者很懒,什么都没留下…
展开
-
lamp环境下php链接数据库出错之一直加载空白页解决方案
问题:Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /下面贴上代码我的 db.php 文件内容如下:<?php$dbhost = 'xxx';$dbuser = 'xxx';$dbpass = 'xxx';$conn = mysql_connect($dbhost,原创 2017-10-29 10:18:38 · 2247 阅读 · 0 评论 -
Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /var/www/html/php..解决方案
完整错误提示:Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /var/www/html/php/include/function.php on line 9在错误消息中明确提出,mysqli_query第一个参数是一个mysqli资源。在我的例子中,这个参数称为$conn,但它保存一个空值。一个适原创 2017-12-18 16:04:10 · 20931 阅读 · 5 评论