Hi All,
      I'm having some problems with php/mysql after a system update ...

my code was working before ... (but I've messed with it since)

test code is:

<?php

#phpinfo();

print(time());


$db_config["database_host"] = "localhost"; $db_config["database_user"] = "school"; $db_config["database_password"] = "bonfire"; $db_config["database_name"] = "school";


$db_connection = mysql_connect($db_config["database_host"] , $db_config["database_user"] ,$db_config["database_password"] );
if (mysql_errno()){
trigger_error("Server error:". mysql_error());
exit;
}
$db_selection = mysql_select_db($db_config["database_name"], $db_connection);
if (mysql_errno()){
trigger_Error("Server error:". mysql_error());
exit;
}


?>

outputs

1054567413
Notice: Server error:Access denied for user: '@localhost' to database 'school' in /home/sean/projects/onlinedb/public_html/test.php on line 22


so it seems to be forgetting the db connection

any help much appreciated :)



Package: mysql-server
Version: 3.23.49-8

Package: php4-mysql
Version: 4:4.1.2-6
Depends: libc6 (>= 2.2.4-4), libmysqlclient10, zlib1g (>= 1:1.1.4), zendapi-20010901


Package: php4
Version: 4:4.1.2-5

Package: libmysqlclient10
Version: 3.23.49-8






--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Reply via email to