Hey Greg,
Well, I'm still not getting any records to load on the page and there's no error.
Sorry for all the trouble.
My current code is below -
On the page:
<?php
$category = "nikka-nadia"; // name of category to load
include("includes/nikka-nadia-classes.php");
?>
On the include:
<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php
/* STEP 1: LOAD RECORDS - Copy this PHP code block near the TOP of your page */
// load viewer library
$libraryPath = 'cmsb/lib/viewer_functions.php';
$dirsToCheck = array('/web/sites/greywood/yogamerge.com/','','../','../../','../../../');
foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }
// load records from 'all_classes'
list($all_classesRecords, $all_classesMetaData) = getRecords(array(
'tableName' => 'all_classes',
'perPage' => '10',
'loadUploads' => true,
'allowSearch' => false,
'where' => "`categories` LIKE '\t". mysql_escape($category) ."\t'",
));
?>
also on the include:
<?php foreach ($all_classesRecords as $record): ?>
I wanted to mention that I uses includes on a variety of pages for navigation menus, etc. and I have always had to use a full url path to the include file if the page was buried within a variety of folders, yogamerge.com/classpages/nikkanadia/restorative-flow-test.php
However, that didn't help in this instance.