I want to understand how many client request calls are made for a typical mysqli query?
Step(1) $result = mysqli_query($link, $query);
Depending on the type of request, we use another mysqli function after this, for example
mysqli_fetch_fields, mysqli_affected_rows, mysqli_insert_id, mysqli_fetch_row
etc .. then we close the result object.
Now, all the data is received and stored in php memory after step (1)? Or mysqli_fetch_fields, mysqli_insert_id, etc. Makes another mysql server call?
Reason for request: trying to understand how mysqli calls work. But he cannot find such an explanation anywhere for beginners like me.
source share