db_num_rows From Online Manual

Revision as of 13:30, 16 July 2011 by Emanuele (talk | contribs) (Created page with "{{smcfunc |function=db_num_rows |usage=$smcFunc['db_num_rows'] (result) |description=Used to obtain the number of rows of a query. It works exactly like [http://php.net/mysql_num...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Usage:

$smcFunc['db_num_rows'] (result)


Description: Used to obtain the number of rows of a query. It works exactly like mysql_num_rows.

Parameters:

  • result a query resource.

Return: an integer representing the number of rows in the result set or false on failure.

Example:

if ($smcFunc['db_num_rows']($request) == 0)
	fatal_lang_error('admin_file_not_found', true, array($_REQUEST['filename']));



Advertisement: