<?php
+
function home()
{
- global $configs;
+ global $connection;
- $connection = new CustomDB($configs['host'], $configs['username'], $configs['password'], $configs['database']);
$requete = "SELECT NumCl, NomCl, CodePosteCl, VilleCl FROM CLIENTS";
$result = $connection->query($requete);
echo "<table border=1>\n";
}
echo "</table>\n";
$result->close();
- $connection->close();
}
home();