|
|
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();
?>
|
|