note 64561 added to function.mssql-query
| From: | km at mcminndigital dot com | Date: | Tue, 18 Apr 2006 18:17:02 +0000 |
| Subject: | note 64561 added to function.mssql-query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-108428@lists.php.net to get a copy of this message | ||
Another note for the archives:
If for some reason you aren't on a windows platform (using FreeTDS etc), or on a older windows
platform and are having a hard time with unicode errors with ntext and images there are two things
to do:
1) make sure you odbc drivers are up to date
:: or ::
2) make sure to convert any ntext or image fields in your select. If you need an image from a select
then you are stuck with upgrading your odbc drivers if you are getting unicode errors.
Use mssql_field_type to get your field types however you want.
SELECT [Name], [UserID], [SomeValue], convert(TEXT, [Description]) FROM [MyDB.[dbo].[MyTable];
----
Server IP: 216.194.113.175
Probable Submitter: 69.28.97.2
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.mssql-query.php
Edit -- http://master.php.net/note/edit/64561
Del: integrated -- http://master.php.net/note/delete/64561/integrated
Del: useless -- http://master.php.net/note/delete/64561/useless
Del: bad code -- http://master.php.net/note/delete/64561/bad+code
Del: spam -- http://master.php.net/note/delete/64561/spam
Del: non-english -- http://master.php.net/note/delete/64561/non-english
Del: in docs -- http://master.php.net/note/delete/64561/in+docs
Del: other reasons-- http://master.php.net/note/delete/64561
Reject -- http://master.php.net/note/reject/64561
Search -- http://master.php.net/manage/user-notes.php