Which PHP function is used to execute a MySQL query?
- mysql_execute
- mysqli_query
- mysql_query
- PDO::execute
The correct function is mysqli_query. It is used to execute a MySQL query in PHP using the MySQLi extension.
Loading...
Related Quiz
- What is the main difference between require() and require_once()?
- How can I display text with a PHP script?
- You need to delete a cookie in your PHP script. How would you do this?
- What are some commonly used miscellaneous functions in PHP?
- You are writing a PHP script and you need to check if a variable contains a numeric value. How would you do this?