Undefined function mysql_connect()

后端 未结 14 939
庸人自扰
庸人自扰 2020-11-22 10:56

I have ran aptitude install php5-mysql (and restarted MySQL/Apache 2), but I am still getting this error:

Fatal error: Call to undefined

14条回答
  •  情深已故
    2020-11-22 11:06

    There must be some syntax error. Copy/paste this code and see if it works:

    I had the same error message. It turns out I was using the msql_connect() function instead of mysql_connect().

提交回复
热议问题