(Created page with "{{smcfunc |function=db_affected_rows |usage=$smcFunc['db_affected_rows'] (connection) |description=Works exactly as [http://php.net/mysql_affected_rows mysql_affected_rows]. |par...") |
No edit summary |
||
Line 15: | Line 15: | ||
<noinclude> | <noinclude> | ||
[[Category:Database Functions | [[Category:Database Functions]]</noinclude> | ||
Revision as of 21:46, 8 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); }