连接mysql数据库,报错mysqli_select_db() expects parameter 1 to be mysqli, string given

版权声明:宇哥出品,必属精品~~~ https://blog.csdn.net/zhongaiyisheng_/article/details/83627172

mysqli_select_db() expects parameter 1 to be mysqli, string given
如下图:
在这里插入图片描述查了查, 主要原因时mysql_select_db()与mysqli_select_db()的参数位置刚好相反!
mysql_select_db()正在被逐渐抛弃,使用的话,可以成功连接,但是会warning。

猜你喜欢

转载自blog.csdn.net/zhongaiyisheng_/article/details/83627172