Re: PHP Username & Password Detection From PSQL Database

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]






When the database connection fails, you are still trying to run the
pg_close command.  That can't be good.

> if(!$database)
> {
> echo "Connection Failed<BR>";
> }
>
> else
> {
> <snip do something here>
> }

> pg_close($database);

> ?>

Thom Dyson
Director of Information Services
Sybex, Inc.



pgsql-php-owner@xxxxxxxxxxxxxx wrote on 04/07/2004 07:16:57 AM:

.....

> Though if a different password is used, Access Denied is printed as well
as
> an error,  Warning: Unable to jump to row 0 on PostgreSQL result index 2
in
> /home/webpages/yamkedoo/Tests/brandnew.php on line 16, that I am unable
to
> solve. This applies for all incorrect passwords. Please view my code:


> If anyone can spot any mistakes, i will welcome suggestions ;-)



[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux