Phpinfo () obtains the mysqli information. How can I configure it to use it? The current situation is that mysql_connect () can be used to understand the database, and mysqli_connect means that the database connection fails, and the web page will stop refreshing. The output string of the running result will stop after Start ....
Phpinfo () obtains the mysqli information. How can I configure it to use it?
The current situation is that mysql_connect () can be used to understand the database, and mysqli_connect means that the database connection fails, and the web page will stop refreshing.
The output string of the running result is Start and then stopped.
Echo "Start"; mysqli_connect (xxxx); echo "OK"; mysqli_close (xxxx); echo "End ";
Reply content:
Phpinfo () obtains the mysqli information. How can I configure it to use it?
The current situation is that mysql_connect () can be used to understand the database, and mysqli_connect means that the database connection fails, and the web page will stop refreshing.
The output string of the running result is Start and then stopped.
Echo "Start"; mysqli_connect (xxxx); echo "OK"; mysqli_close (xxxx); echo "End ";
This is a driver problem. The old version of php uses mysql by default,
Mysqli and pdo are supported by the new php version,
In php. ini, open display_error to view the specific error information.