Hi barand. Finally got a minute to test this (I've been swamped getting a project off the ground at work lately...)
First report, is on the tutorial. Postgresql pukes on int(11) and double, but accepts plain int and float. Unless int and float would break the tutorial for MySQL, I'd recommend changing them.
Back in a minute to add more...
OK. I got it installed, and connected to postgresql with my server. I'm getting these errors in the first tutorial:
This one repeats 3 times:
Notice: Undefined offset: -1 in /usr/local/lib/php/baaGrid.php on line 490
Line 490 is:
function _padWithLast(&$a, $n) {
-> This line $val = $a[count($a)-1];
$a = array_pad($a, $n, $val);
return;
}
This one repeats about a 100 times:
Notice: Undefined offset: 0 in /usr/local/lib/php/baaGrid.php on line 367
And the number goes 0,1,2,3 and repeats over and over.
line 367 is:
for ($i=0; $i<$this->fieldCount; $i++) {
$atxt = array();
$stxt = '';
-> This line if ($this->align[$i]) {
$atxt[] = "text-align: {$this->align[$i]}";
}
OK, some more output as well..
Next error after these:
Warning: pg_fetch_row(): Unable to jump to row 18 on PostgreSQL result index 4. in /usr/local/lib/php/baaGrid.php on line 293
then inside the table I get:
Notice: Undefined offset: 1 in /usr/local/lib/php/baaGrid.php on line 390
where the offset goes to 2 then 3 as we go across, then starts over. This is in the locname, qty, and value fields. But the output is still there.