WIKINDX METHODS

Method:
ListFields()

Class:
SQL

Method Call:
include_once("core/sql/SQL.php");
$db = new SQL();
ADODB_RECORDSET $db->listFields(STRING:: $table);

Description:
List fields in a table.

The return is a ADODB_RECORDSET suitable for passing to the fetchRow() method. If it fails to execute the query, the script will exit with an error message.

Usage:
For example (assuming the database object exists within a class as $this->db):

	$table = "WKX_resource";
	$recordset = $this->db->listFields($table);
	$row = $this->db->fetchOne($recordset);
	print_r($row);

WIKINDX home      WIKINDX usage      WIKINDX classes