After successful execution of an SQL statement, this method is used to save the result set. This means that the result set is retrieved and returned. Here is its syntax:
MYSQL_RES *mysql_use_result(MYSQL *mysqlObject)
Here, mysqlObject represents the connection handler.
If no error occurs, the function returns a MYSQL_RES result structure. In case of any error, the function returns NULL.