Re: MSSQL
| From: | Markus Fischer | Date: | Mon, 14 May 2001 22:22:45 +0000 |
| Subject: | Re: MSSQL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-52752@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "Andreas Pucko" <andreasp@w3media.com>
To: "Php (E-mail)" <php-general@lists.php.net>
Sent: Tuesday, May 15, 2001 12:19 AM
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;
> }
1) _Where_ to you get 'undefined function ?
2) Mixing mysql_* and mssql_* is probably not a good idea
- Markus