(Created page with "{{smcfunc |function=db_fetch_assoc |usage=$smcFunc['db_fetch_assoc'] ($result) |description=Will return exact same results as [http://php.net/mysql_fetch_assoc mysql_fetch_assoc]...") |
No edit summary |
||
Line 1: | Line 1: | ||
{{smcfunc | {{smcfunc | ||
|function=db_fetch_assoc | |function=db_fetch_assoc | ||
|usage=$smcFunc['db_fetch_assoc'] ($result) | |usage=<nowiki>$smcFunc['db_fetch_assoc'] ($result)</nowiki> | ||
|description=Will return exact same results as [http://php.net/mysql_fetch_assoc mysql_fetch_assoc] | |description=Will return exact same results as [http://php.net/mysql_fetch_assoc mysql_fetch_assoc] | ||
|parameters={{parmdesc | |parameters={{parmdesc |
Revision as of 19:00, 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'];