Error on Example code

9 views
Skip to first unread message

Girish

unread,
May 3, 2011, 5:46:08 AM5/3/11
to TableGear
Andrew, there is a error in your example code. (http://
andrewplummer.com/code/tablegear/docs2.html)

<?php
include "TableGear.php";
$tg = new TableGear(array(
"database" => array(
"username" => "USERNAME",
"password" => "PASSWORD",
"database" => "DATABASE",
"table" => "TABLE"
),
"editable" => "all",
"sortable" => "all"
);
$tg->getTable();
?>
<script type="text/javascript" src="MooTools.js"></script>
<script type="text/javascript" src="TableGear.js"></script>
<script type="text/javascript">
new TableGear("tgTable");
</script>

The new TableGear needed to closed. So that the code looks like

"sortable" => "all"
));

Reply all
Reply to author
Forward
0 new messages