Click to See Complete Forum and Search --> : trouble installing phplib (newbie)


Anon
08-09-2000, 11:13 AM
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

Anon
08-09-2000, 01:33 PM
You've got a rather high setting for php error reporting.
It's a variable for php, not for phplib; it'll happen with any php script you try to run.

We set ours fairly high (15) and get those too, for
testing purposes; we do it in the httpd.conf file,
inside one of the virtual server definations with
this line:

php_value error_reporting 15

You can turn it down in the apache configuration file or the php configuration file, or probably within a .htaccess file.

Hang in there!
Russ
Cowboyz.com