I've recently been asked to set up a copy of a website. This original one used an apache server on Linux with PHP connecting to MySQL. I have got this all set up. And have done the variuos tests to prove that it all interlinks and works correctly together. However, to connect to their database etc they use PHPLib and this is where my problem lies. I followed the installation instructions for PHPlib but the connection test fails with the following errors
Warning: Uninitialized variable in table.inc on line 884
Warning: Uninitialized variable or array index or property (d) in table.inc on line 833
These are only two of many although they are all complaining of uninialised variables! The data requested is returned and is also placed in a table as requested. So what I am missing?
Here is the test code I wrote:
<?php
include("table.inc");
$db = new DB_OneFootball;
$db->query("select*from user);
$t = new Table;
$t->heading = "on";
$t->show_result($db);
?>
Cheers
hannah