<?php
  /* STEP 1: LOAD RECORDS - Copy this PHP code block to the TOP of your page BEFORE anything else. */
  require_once "d:/hosting/member/acraig/site1/cmsadmin/lib/viewer_functions.php";

  list($marketplaceRecords, $marketplaceMetaData) = getRecords(array(
    'tableName'   => 'marketplace',
  ));

  list($marketplace_couponsRecords, $marketplace_couponsMetaData) = getRecords(array(
    'tableName'   => 'marketplace_coupons',
  ));
  
  list($marketplace_classifiedsRecords, $marketplace_classifiedsMetaData) = getRecords(array(
    'tableName'   => 'marketplace_classifieds',
  ));
  
     
?><!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>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>

<body>
<?php $mergedArray = array_merge($marketplaceRecords, $marketplace_couponsRecords, $marketplace_classifiedsRecords); ?>  
 
<?php $mergedUniqueArray = array_unique($mergedArray); ?> 
  
<?php foreach ($mergedUniqueArray as $record): ?>  
<?php echo $record['title']; ?><br/>  
<?php endforeach ?>
</body>
</html>
