PHP Classes

File: ClassTestFile/testTemplateManagerDynamic.php

Recommend this page to a friend!
  Classes of Guerrieri Luca  >  PXAServer  >  ClassTestFile/testTemplateManagerDynamic.php  >  Download  
File: ClassTestFile/testTemplateManagerDynamic.php
Role: Example script
Content type: text/plain
Description: Test for Template Manager Class
Class: PXAServer
Library to build applications configured with XML
Author: By
Last change:
Date: 14 years ago
Size: 777 bytes


Class file image Download
 * File di test della classe Template Manager
 //require ('../libreria/');
require ('../libreria/');
$Qm = new QueryManager;
$Qm ->set_query('Q_username');
$Qm ->set_placeholders(array('username')); //imposto i nomi dei placeholders nella query come array
$Qm ->set_data(array('luca')); //imposto i nomi delle variabili nella query come array
$Qr = new QueryResult($Qm ->get_dynamic_query(),"assoc",$link); //rilascia un array con il risultato della query eseguita
$query_array = $Qr-> result;
$tm = new TemplateManager;
"la query : ".$Qm ->get_static_query();

For more information send a message to info at phpclasses dot org.