Db fetch assoc: Difference between revisions From Online Manual

Jump to: navigation, search
mNo edit summary
mNo edit summary
Line 7: Line 7:
}}
}}
|return=an associative array with a single row of results from the query.
|return=an associative array with a single row of results from the query.
|example=<nowiki></nowiki> while ($row = $smcFunc['db_fetch_assoc']($request))
|example=<nowiki> while ($row = $smcFunc['db_fetch_assoc']($request))
$search_params['brd'][] = $row['id_board'];
$search_params['brd'][] = $row['id_board'];</nowiki>
}}
}}



Revision as of 19:17, 25 May 2011

Usage:

$smcFunc['db_fetch_assoc'] ($result)


Description: Will return exact same results as mysql_fetch_assoc

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'];



Advertisement: