php数据库问题

WBOY
Release: 2016-06-23 13:46:05
Original
894 people have browsed it




如上图,调用了create_db()后,报错,请问这是什么错误,怎么解决?谢谢!

错误信息:


回复讨论(解决方案)

mysqli_connect()   改为:mysql_connect()

用mysql i 链接的数据库但是在创建的时候既然用mysql库函数创建
mysqli 和MySQL是两套扩展库

楼上的都是正解,,mysql和mysqli是两套机制,不要混着用。。。

mysql i_connect() 

改为

mysql_connect()

即可.

用mysql i 链接的数据库但是在创建的时候既然用mysql库函数创建
mysqli 和MySQL是两套扩展库

原来这样,谢谢
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!