Re: PHP shows nothing
| From: | Mohammad Taghi Khalifeh | Date: | Tue, 30 Nov 2010 21:51:32 +0000 |
| Subject: | Re: PHP shows nothing | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-309779@lists.php.net to get a copy of this message | ||
Marc
On Wed, Dec 1, 2010 at 1:02 AM, Marc Guay <marc.guay@gmail.com> 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().