Home  >  Article  >  Backend Development  >  php数据库问题

php数据库问题

WBOY
WBOYOriginal
2016-06-23 13:46:05893browse




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

错误信息:


回复讨论(解决方案)

mysqli_connect()   改为:mysql_connect()

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

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

mysql i_connect() 

改为

mysql_connect()

即可.

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

原来这样,谢谢
Statement:
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