|
Posted by alfienorks on 05/05/07 23:31
On 9 Apr, 22:25, alfieno...@hotmail.com wrote:
> I've just got into PHP (Apache/MySQL) and have tried installing PHPLIB
> to see if this can be advantageous.
>
> I've run through the install instructions onhttp://www.sanisoft.com/phplib/manual/install.quickstart.phpand
> although these seem a little limited I've got to see mysession
> variables increment (a positive step) - but when I run the
> showoff.php3 script I get the messages
>
> {{{
> Databaseerror: connect (localhost, kk, $Password) failedMySQLError: ()
>
> Sessionhalted.
>
> }}}
>
> and I see no messages in theerror.log file.
>
> Does anyone have any suggestions where I should start here?
>
> Many thanks
> Alfie
Further thoughts on this. The php that's failing is :
{{{
<?php
include("table.inc"); // requires include_path to be functioning
$db = new DB_Example;
$db->query("select * from auth_user");
$t = new Table;
$t->heading = "on";
$t->show_result($db);
?>
}}}
and local.inc has the following code:
{{{
class DB_Example extends DB_Sql {
var $Host = "ssss:3306";
var $Database = "xxx";
var $User = "yyy";
var $Password = "zzz";
}
}}}
The ..Apache2.2\logs\error.log has no entries in it - and I've checked
login credentials in the local.inc against MySQL Query Browser and I'm
able to login to the given database with the user and password - so
I'm still struggling here.
Again... any thoughts?
Thanks
A
Navigation:
[Reply to this message]
|