<?php
	/* STEP 1: LOAD RECORDS - Copy this PHP code block near the TOP of your page */
	require_once "./lib/viewer_functions.php";

	list($mytableRecords, $mytableMetaData) = getRecords(array(
		'tableName'   => 'mytable',
		'where'       => whereRecordNumberInUrl(1),
		'limit'       => '1',
		'debugSql'    => false,
	
	));

	$mytableRecord = @$mytableRecords[0]; // get first record

	// load all pages for menu (put this second) 
	list($secondaryRecords, $secondaryMetaData) = getRecords(array(    
		'tableName'   => 'mytable',
		'allowSearch' => '0',

	)); 

	$num = getNumberFromEndOfUrl();

?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>


<?php foreach ($secondaryRecords as $record): ?> 

		<a href="<?php echo $record['_link'] ?>">...</a><br />			

<?php endforeach; ?>


<br />

<?php if ($num == $record['num']): ?>greenbuttons<?php endif; ?> - <?php print_r($record['num']); ?>


</body>
</html>