I just started using PHP a few weeks ago and I am having trouble. with the quick start trouble shooting example;
<?php
include("table.inc");
$db = new DB_Example;
$db->query("select * from auth_user");
$t = new Table;
$t->heading = "on";
$t->show_result($db);
?>
I get numerous warnings
Warning: Undefined property: fields in ...\table.inc on line 837
Warning: Undefined variable: row in ...\table.inc on line 299
Warning: Undefined property: check in ...\table.inc on line 511
Warning: Undefined variable: col in ...\table.inc on line 568
Warning: Undefined property: map_cols in ...\table.inc on line 657
user_id
Warning: Undefined property: map_cols in ...\table.inc on line 657
username
Warning: Undefined property: map_cols in ...\table.inc on line 657
password
Warning: Undefined property: map_cols in ...\table.inc on line 657
perms
Warning: Undefined property: add_extra in ...\table.inc on line 304
Warning: Undefined property: check in ...\table.inc on line 536
c14cbf141ab1b7cd009356f555b607dc kris test admin
Warning: Undefined property: add_extra in ...\table.inc on line 481
Can someone tell me what I could be done wrong. Hopefully its not utter cluelessness :-)
Also I saw a posting in which someone mentioned they are using version 1.8 of table.inc. I downloaded what I thought was the latest PHPLIB stuff from the web site. It has a table.inc version 1.2. Is there a more up to date code repository that I am not aware of?
Any help will be appreciated.
Ken Lancaster