Re: MSSQL (Mistake)
| From: | Fabian Raygosa | Date: | Mon, 14 May 2001 22:19:37 +0000 |
| Subject: | Re: MSSQL (Mistake) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-52756@lists.php.net to get a copy of this message | ||
DAMN SORRY there is a pconnect
duh
bad me bad me
----- Original Message -----
From: "Fabian Raygosa" <fabian@getacard.com>
To: <Andreas.Pucko@w3media.com>; "Php (E-mail)" <php-general@lists.php.net>
Sent: Monday, May 14, 2001 3:18 PM
Subject: Re: [PHP] MSSQL
> According to the php docs there is no mssql_pconnect just mssql_connect
> get rid of the "p"
> ----- Original Message -----
> From: "Andreas Pucko" <andreasp@w3media.com>
> To: "Php (E-mail)" <php-general@lists.php.net>
> Sent: Monday, May 14, 2001 3:19 PM
> Subject: [PHP] MSSQL
>
>
> > Hi there,
> >
> > while tying to connect to a MSSQL DB I get the error message: call to
> > undefined function.
> >
> > I thing my syntax is ok.
> >
> >
> > function pconnect_db()
> > {
> >
> > if (!($link = mssql_pconnect ($DB_SERVER, $DB_LOGIN, $DB_PASSWORD))) {
> > printf("An SQL error has occured. Please contact our
> webmaster\n\n");
> > DisplayErrMsg(sprintf("internal error %d:%s\n",
> > mysql_errno(), mssql_error()));
> > exit() ;
> > }
> > return $link;
> > }
> >
> > does anybody see the error?
> >
> > Cheers Andy
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net