Accueil | Exemples en ligne | Documentation | Forum | Page du projet | Téléchargement

Manuel TPLN

La fonction ShowRecords

RewriteUrl
SetNavColor
SetUrl
UrlAddVar
CreateFieldVars

 

UrlAddVar

void UrlAddVar( string var)

La fonction SetUrl() permet d'ajouter une variable dans l'url générée par la fonction Showrecords().


<?php

include("TPLN/TPLN.php");

$TPLN = new TPLN;
$TPLN->Open("template.html");

$TPLN->DbConnect();
$TPLN->UrlAddVar("var=my_var");
$TPLN->ShowRecords("SELECT * FROM my_table",10); // 10 results by page
$TPLN->DbClose();

$TPLN->Write();

?>


TopTop