<?php echo "<?xml version='1.0'?>\n"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title></title>
<body>

  <!-- STEP1: Load Record List (Paste this above other steps) -->
    <?php
      require_once "C:/wamp/www/sb/core2/admin/lib/viewer_functions.php";
      $options = array();                  // NOTE: see online documentation for more details on these options
      $options['tableName']  = 'accounts';  // (REQUIRED) MySQL tablename to list record from. Example: 'article';
      $options['perPage']    = '999';         // (optional) The number of records to display per page. Example: '5'; Defaults to 10.
      list($listRows, $listDetails) = getListRows($options);
    ?>
  <!-- /STEP1: Load Record List -->

  <!-- STEP2: Display Record List (Paste this where you want your records to be listed) -->
    <h1>Account List Viewer</h1>
    <?php foreach ($listRows as $record): ?>
      username: <?php echo $record['username'] ?><br/>
      password: <?php echo $record['password'] ?><br/>
    <hr/>
    <?php endforeach ?>
  <!-- /STEP2: Display Record List -->


</body>
</html>
