note 71679 added to function.mssql-fetch-assoc
| From: | brandonkirsch at uses dot gmail dot domain | Date: | Mon, 11 Dec 2006 18:43:15 +0000 |
| Subject: | note 71679 added to function.mssql-fetch-assoc | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-120509@lists.php.net to get a copy of this message | ||
We are running FreeTDS on a Linux Apache / PHP server and encountered the following error when
calling mssql_fetch_assoc()
Fatal error: Call to undefined function mssql_fetch_assoc()
We were confused because *some* of the mssql commands worked, such as mssql_connect and
mssql_fetch_array. The trick to make mssql_fetch_assoc() work lies in configuring FreeTDS. We had
to change the statement to contain the --enable-msdblib switch:
./configure --enable-msdblib
We then recompiled PHP to include --with-mssql=/path/to/freetds and finally mssql_fetch_assoc()
began working properly.
----
Server IP: 66.163.161.117
Probable Submitter: 70.62.40.253
----
Manual Page -- http://www.php.net/manual/en/function.mssql-fetch-assoc.php
Edit -- https://master.php.net/note/edit/71679
Del: integrated -- https://master.php.net/note/delete/71679/integrated
Del: useless -- https://master.php.net/note/delete/71679/useless
Del: bad code -- https://master.php.net/note/delete/71679/bad+code
Del: spam -- https://master.php.net/note/delete/71679/spam
Del: non-english -- https://master.php.net/note/delete/71679/non-english
Del: in docs -- https://master.php.net/note/delete/71679/in+docs
Del: other reasons-- https://master.php.net/note/delete/71679
Reject -- https://master.php.net/note/reject/71679
Search -- https://master.php.net/manage/user-notes.php