Fatal error: Uncaught Error: Call to undefined function mysql_connect()

后端 未结 8 816
一向
一向 2020-11-22 10:41

I am trying to do a simple connection with XAMPP and MySQL server, but whenever I try to enter data or connect to the database, I get this error.

Fata

8条回答
  •  南旧
    南旧 (楼主)
    2020-11-22 11:00

    For mysqli you can use :

    $db = ADONewConnection('mysqli');

    ... ...

    $db->execute("set names 'utf8'");

提交回复
热议问题