Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP mysqli_fetch_row() Function

PHP mysqli_fetch_row() Function

PHP MySQLi Reference Manual PHP MySQLi Reference Manual

Fetch rows from the result set:



";

    }

    

    // Release the result set

    mysqli_free_result($result);

}



mysqli_close($con);

?>


Definition and Usage

The mysqli_fetch_row() function fetches one row from a result set and returns it as an enumerated array.


Syntax

mysqli_fetch_row(

result

)

;

Parameters Description
result Required. Specifies the result set identifier returned by mysqli_query(), mysqli_store_result(), or mysqli_use_result().

Technical Details

Return Value: Returns an array of strings corresponding to the fetched row, or NULL if there are no more rows in the result set.
PHP Version: 5+

PHP MySQLi Reference Manual PHP MySQLi Reference Manual