$query = "INSERT INTO users (name, email) VALUES ('John', 'john@example.com');"; $query .= "INSERT INTO users (name, email) VALUES ('Jane', 'jane@example.com');"; $query .= "INSERT INTO users (name, email) VALUES ('Bob', 'bob@example.com');"; if ($mysqli->multi_query($query)) { echo "Records inserted successfully"; } else { echo "Error: " . $mysqli->error; }In this example, we are inserting three records into the "users" table using three separate SQL statements. We concatenate the statements into a single string variable and pass it to the multi_query function. If the queries are executed successfully, we print a success message; otherwise, we print an error message. The PHP mysqli multi_query function is part of the MySQL Native Driver (mysqlnd) library, which is included in PHP as a default extension.