Spark software

Time:2020-2-15

It can be solved by mysqli connect.

Mysqli_array() has two parameters. The first is the name of the connection mysql.

PHP encountered this warning warning: use of undefined constant title – assumed ‘title’ (this will throw an error in a future version of PHP) can be solved through error reporting (0).

The main problem is that brackets [] in the database need to be quoted.

Such an error as fatal error was encountered: Uncaught Error: Call to undefined function mysql_connect()

Resolved as follows

1. MySQL is not connected properly

2. if MySQL is normal or the connection is wrong, replace MySQL connect () with mysqli connect ()