<?php
require "Class.ConBD.php";
$objectConDB = ConDB::getInstance(); // instance of ConDB
$stringQuery = "select * from my_table"; // a sample query
$query=$objectConDB->query($stringQuery);
$query->setFetchMode(PDO::FETCH_OBJ); // Format Objet
$record = $query->fetch();
print_r($record); //retreive the resut of query
|