|
|
ParseDBRow
void ParseDBRow(string|array blocname,[string parse_function]) |
ParseDBRow() serves to parse all variables of a bloc by values returned by a row of your query.
Parse_function is the same as Parse() function, you can put php function. |
<?php
$TPLN->Open("template.html");
$TPLN->DbConnect();
$TPLN->DoQuery("SELECT * FROM my_table");
$TPLN->ParseDbRow("bloc1","|strtoupper"); // Parse field and use php strtoupper function
$TPLN->DbClose();
$TPLN->Write();
?>
|
|