Db fetch assoc: Difference between revisions From Online Manual

Jump to: navigation, search
mNo edit summary
m (change category)
Line 11: Line 11:
}}
}}


<noinclude>[[category:smcfunc]]
<noinclude>[[Category:Database Functions]]
[[Category:2.0]]
[[Category:2.0]]
[[Category:Customizing SMF]]
[[Category:Customizing SMF]]
[[Category:Developing SMF]]</noinclude>
[[Category:Developing SMF]]</noinclude>

Revision as of 09:52, 2 June 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: