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

 

GetFields

array GetFields(string query)

The GetFields() function serves to obtain the name of a field of your query.


<?php

include("TPLN/TPLN.php");

$TPLN = new TPLN;
$TPLN->DbConnect();
$query = "SELECT * FROM table";
$fields = $TPLN->GetFields($query); // get fields name

for($i=0;$i<count($fields);$i++)
{
echo
$fields[$i]."<br>";
}
$TPLN->DbClose();

?>


Attention !
TPLN 1.5
TopTop