<?php
require('path/to/DatabaseAccess.Class.php');
$DbAccess = new DatabaseAccess("yourHost", "dbName", "dbUser", "dbUserPassword");
$userDatas = $DbAccess->SimpleGet("SELECT * FROM `UserAccounts`");
// We can test that something was returned, but since we are doing
// a foreach on the results it's really not needed
if (count($userData) < 1)
return;
foreach ($userDatas as $userData)
{
var_dump($userData);
}
|