Hi,
I'm having this interesting problem with adding new rows. Firstly here
is my test page so you can see what's going on.
http://wayneandfarrah.com/dev/critical_systems/public/test.php
The symptoms are that when you are entering the data for each column
of a new row, on exiting each column TableGear enters a new row for
it, essentially it creates a new row for each column and puts it into
the first row. You can see this on the page at the moment that I have
tried to add a new row and what TableGear has actually done (Note: I
added the first two rows via php admin so that I could verify that I
was getting data back so that is why they look right.)
I have omitted the actual connection details of course, if someone
knows a reason from looking in the code below why this might be
happening
I would be very appreciative.
<?php
include("../libraries/TableGear1.6-jQuery/include/TableGear1.6.php");
$options = array();
$options["database"] = array();
$options["pagination"] = array();
$options["database"]["name"] = "<omitted>";
$options["database"]["username"] = "<omitted>";
$options["database"]["password"] = "<omitted>";
$options["database"]["table"] = "<omitted>";
$options["database"]["host"] = "<omitted>";
$options["database"]["sortable"] = "all";
$table = new TableGear($options);
?>
<!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="../libraries/TableGear1.6-jQuery/
javascripts/TableGear1.6-jQuery.js"></script>
<link type="text/css" rel="stylesheet" href="../libraries/
TableGear1.6-jQuery/stylesheets/tablegear.css" />
</head>
<body>
<div>
<h1>Markov</h1>
</div>
<div>
<?= $table->getTable() ?>
</div>
<?= $table->getJavascript("jquery") ?>
</body>
</html>