Home | Online Examples | Documentation | Forum | Page of Project | Download

TPLN Manual

DB functions

ParseDBRow
ParseDBField
DbConnect
ChangeConnection
DbClose
DoQuery
GetRowsCount
DBFetchArray
DBFetchAssoc
DBFreeResult
GetOne
GetNumFields
GetFields
GetFieldName
GetDBList
GetTableList

 

GetNumFields

int GetNumFields()

The GetOne() function serves to obtain the number of fields of your query.


<?

include("TPLN/TPLN.php");

$TPLN = new TPLN;
$TPLN->DbConnect();
$TPLN->DoQuery("SELECT * FROM samples");
$count_fields = $TPLN->GetNumFields();
$TPLN->DbClose();

?>


TopTop