Hm ok... well here's an example of the code that's working for me
below...
Tablegear should be handling the IDs directly... The second table
should increment to 2, then 3, etc.
<?php
include("../lib/include/tablegear.php");
include("../config.php");
$options = array();
$options["database"] = array();
$options["pagination"] = array();
$options["database"]["name"] = DATABASE_NAME;
$options["database"]["username"] = DATABASE_USER;
$options["database"]["password"] = DATABASE_PASS;
$options["database"]["table"] = "labs_tablegear2";
$options["database"]["utf8"] = true;
$options["allowDelete"] = true;
$options["editable"] = "all";
$options["showAddNewRow"] = true;
$options["pagination"]["perPage"] = 10; // 10 rows per page.
$options["pagination"]["prev"] = "prev"; // "prev" link will be
shown.
$options["pagination"]["next"] = "next"; // "next" link will be
shown.
$options["pagination"]["linkCount"] = 2; // 2 links on each side of
the current page.
$options["pagination"]["first"] = true; // Show "first" link.
$options["pagination"]["last"] = true; // Show "last" link.
$options["transform"] = array(
'field4' => array('tag' => 'span', 'html' => '{ASSOCIATED}',
associate => 'field2')
);
$table = new TableGear($options);
$o2 = array();
$o2["database"] = array();
$o2["database"]["name"] = DATABASE_NAME;
$o2["database"]["username"] = DATABASE_USER;
$o2["database"]["password"] = DATABASE_PASS;
$o2["database"]["table"] = "labs_tablegear";
$o2["database"]["utf8"] = true;
$t2 = new TableGear($o2);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /
>
<title>TableGear for jQuery</title>
<script type="text/javascript" src="
http://ajax.googleapis.com/ajax/
libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="../lib/javascripts/tablegear-
jquery.js"></script>
<link type="text/css" rel="stylesheet" href="../lib/stylesheets/
tablegear.css" />
</head>
<body>
<div>
<?= $table->getTable() ?>
</div>
<p>--------------------------- hey let's take a break!
--------------------</p>
<div>
<?= $t2->getTable() ?>
</div>
<?= $table->getJavascript("jquery") ?>
<?= $t2->getJavascript("jquery") ?>
</body>
</html>