Re: PHP shows nothing

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

 



Marc

On Wed, Dec 1, 2010 at 1:02 AM, Marc Guay <marc.guay@xxxxxxxxx> wrote:

> >        if(!$db = @pg_connect($connection_string)) {
> >                return FALSE;
> >        }
> >        return $db;
> >
> > how can I find the problem and fix it?
>
>
> The @ symbol is telling it to ignore errors.  Remove it and you'll see
> them if that's where the problem is.
>
> http://php.net/manual/en/language.operators.errorcontrol.php
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> Thanks for advise (I didn't know that). but removing @ did not change
anything.
it seems that the problem is in pg_connect().

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux