mysql_result

mixed mysql_result(mysql result result_handle, int row_offset, [mixed field]) 
result_handle Result handle returned by mysql_db_query() or mysql_query()
row_offset Row offset to use
field Field offset or field name to use

Fetches a single field from a result set.

Returns:

String, integer, or double; FALSE on error

Description:

mysql_result() fetches a single field from a MySQL result set. The function accepts two or three arguments.

The first argument should be a MySQL result handle returned by mysql_db_query() or mysql_query().

The second argument should be the row from which to fetch the field, specified as an offset. Row offsets start at 0.

The optional last argument can contain a field offset or a field name. If the argument ...

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.