Sample> ParseDb Row

<?php

// include TPLN
include('TPLN/TPLN.php');

$TPLN = new TPLN;
$TPLN->open('parseDb_row.html');

$TPLN->dbConnect();

$TPLN->setNavColor('#e5e5e5''#ffffff');
$TPLN->doQuery('SELECT * FROM Country ORDER BY RAND() LIMIT 10');
$TPLN->parseDbRow('test_data'); // apply results to bloc test_data

$TPLN->dbClose();
$TPLN->write();




?>
<html>
<head>
    <title>TPLN - DB row Parsing ! Sample</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link href="../style.css" rel="stylesheet" type="text/css" />
</head>
<body>

<table cellspacing="1" cellpadding="3">
<tr>
    <th>Continent</th>
    <th>Region</th>      
    <th>Code</th>
    <th>Name</th>
</tr>
  
<bloc::test_data>
<tr bgcolor="{_NavColor}">
    <td>{Continent}</td>
    <td>{Region}</td>      
    <td>{Code}</td>
    <td>{Name}</td>
</tr>
</bloc::test_data>

</table>


<br>
<br>
{_Logo}<font size="1"> in {_Chrono} s<br>
Queries executed: {_QueryCount}</font>

</body>
</html>