PHP Classes

File: ClassTestFile/testQueryResult.php

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


Class file image Download
 * File di test della classe QueryResult

//invoco la classe DBConnect per collegarmi al sermer MYSql
$db = new DBconnect;
$db ->db_type="mysql";
$db ->db_param('localhost','root','','acms');
$link=$db ->open();

//eseguo la query che passo come argomento
$Qr = new QueryResult("SELECT * FROM `utenti`","assoc",$link);
foreach ((
$Qr->result()) as $key=>$valore){
    foreach (
$valore as $key=>$val){

$db ->close($link);

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