Date: 11/30/00
- Next message: Max Derkachev: "[phplib] PHPlib session using PHP4 sessions implementation: the code"
- Previous message: Philip Strnad: "[phplib] performance"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
with the following code i have an error of connection to the database
"www-data" instead of database "si"
where do i make a mistake?
<?
require "/usr/lib/phplib/db_pgsql.inc";
$Host = "localhost";
$User = "www-data";
$Password = "www-data";
$Database = "si";
$Port = "5432";
$db = new DB_Sql();
$link = $db->connect($Host,$Port,$Database,$User,$Password);
$result = $db->query("select customer_name from clustomer");
if ($result) {
while ($db->next_record()) {
$customer_name = $db->f('customer_name');
echo "name of customer : $customer_name<br>\n";
}
}
?>
error in the browser :
"Warning: Unable to connect to PostgreSQL server: FATAL 1: Database
"www-data" does not exist in the system catalog. in
/usr/lib/phplib/db_pgsql.inc on line 47
Database error: Link-ID == false, pconnect failed
PostgreSQL Error: 0 ()
Session halted."
i don't understand why.
regards
olivier.
-- Membre fondateur de PhpFR : http://www.phpfr.org Membre de l'Association Gcu : http://gcu-squad.org Membre de l'Association LinuxFr : http://linuxfr.org--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: Max Derkachev: "[phplib] PHPlib session using PHP4 sessions implementation: the code"
- Previous message: Philip Strnad: "[phplib] performance"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

