<?php
require('path/to/DatabaseAccess.Class.php');
$DbAccess = new DatabaseAccess("yourHost", "dbName", "dbUser", "dbUserPassword");
$DbAccess->PrepareStatement("SELECT * FROM `UserAccounts`");
$userDatas = $DbAccess->ExecuteQuery_Get();
// 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);
}
|