Question: what is the difference between mysql_connect and mysqli_connect?
Answer: PHP | mysqli_connect() Function The mysqli_connect() function in PHP is used to connect you to the database. In the previous version of the connection mysql_connect() was used for connection and then there comes mysqli_connect() where i means improved version of connection and is more secure than mysql_connect().