db_fetch_assoc

From Online Manual

Revision as of 15:17, 26 July 2011 by Emanuele (Talk | contribs)

Jump to: navigation, search
{{#set:SMC_function=db_fetch_assoc}}{{#set:SMC_order_position=2}}

Usage:

$smcFunc['db_fetch_assoc'] ($result)
{{#set:SMC_usage_exm=$smcFunc['db_fetch_assoc'] ($result)}}

{{#set:SMC_internal=false}}

Description: Will return exact same results as mysql_fetch_assoc{{#set:SMC_description_text=Will return exact same results as mysql_fetch_assoc}}

Parameters:

  • $result a resource returned from a query.
{{#set:SMC_parameters=
  • $result a resource returned from a query.
}}

Return: an associative array with a single row of results from the query.

Example:

			while ($row = $smcFunc['db_fetch_assoc']($request))
				$search_params['brd'][] = $row['id_board'];