No edit summary |
m (refresh SMW properties) |
||
Line 13: | Line 13: | ||
}</nowiki> | }</nowiki> | ||
}} | }} | ||
<noinclude> | <noinclude> | ||
[[Category:Database Functions]]</noinclude> | [[Category:Database Functions]]</noinclude> |
Latest revision as of 16:40, 11 October 2012
Usage:
$smcFunc['db_affected_rows'] (connection)
Description: Works exactly as mysql_affected_rows.
Parameters:
- connection the database connection.
Return: The number of affected row in a previous database operation.
Example:
if ($smcFunc['db_affected_rows']() <= 0) { loadLanguage('Admin'); fatal_lang_error('salvaged_category_error', false); }