Example 1 — Read Info After a Multi-Row Insert
After inserting several rows, print the info summary. Output is a typical sample.
<?php
$mysqli = mysqli_connect("localhost", "demo_user", "demo_pass", "app_db");
mysqli_query(
$mysqli,
"INSERT INTO tags (name) VALUES ('php'), ('mysql'), ('html')"
);
echo mysqli_info($mysqli), PHP_EOL;
mysqli_close($mysqli); How It Works
- A multi-value INSERT is one of the statement types that fills info.
- mysqli_info() returns the server summary string.
- The sample shows three records and no duplicates.
- Close the connection when done.

