MDB_Common::numCols() – get number of columns


require_once 'MDB.php';

integer numCols ( resource $result )


Get the number of columns of the rows in a result set.


resource $result

a valid resource returned by query() or executeQuery()

Return value

integer - number of columns


This function can not be called statically.

returns the next free id of a sequence (Previous) get number of rows (Next)
Last updated: Tue, 17 Jan 2017 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.