The main goal of MySQL and PHP connectivity is to retrieve and manipulate the data from MySQL database server.
1. The SQL query statements are helping with PHP MySQL extension to achieve the objective of MySQL and PHP connection.
2. “mysqli_query” is a function, helps to execute the SQL query statements in PHP scripting – language.