Bug #10413 Updated: Error retrieving image field from MSSQL database
| From: | jesus dot estrada at qbien dot net | Date: | Mon, 23 Jul 2001 14:12:13 +0000 |
| Subject: | Bug #10413 Updated: Error retrieving image field from MSSQL database | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-60756@lists.php.net to get a copy of this message | ||
ID: 10413
User updated by: jesus.estrada@qbien.net
Reported By: jesus.estrada@qbien.net
Status: Closed
Bug Type: MSSQL related
Operating System: Win2k
PHP Version: 4.0.4pl1
New Comment:
Looks like it's working in php 4.0.6
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2001-06-30 14:51:31] fmk@php.net
Handling of binary data was changed in php4.0.6. Please update and try again.
------------------------------------------------------------------------
[2001-04-19 22:01:41] jesus.estrada@qbien.net
Looks like there's a problem in the Windows version of the mssql extension. I'm having the
same problem as Leonid Freidin with queries that have a image in the result.
I'm using php4.04pl1.
This is the code.
<?
$con = mssql_connect("laptop2000","sa","adfasdf") or die("couldnt
connect to db"); //Nos conectamos al servidor de BD
if (mssql_select_db("MexMatch",$con)) {
$query= "select * from Usuario where apodo = 'karls'"; //It crashes here,
because I have an image field here.
$result = mssql_query($query,$con) or die("bke");
while($array = mssql_fetch_array($result))
echo $array{"apodo"};
mssql_free_result($result);
}
mssql_close($con);
?>
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=10413&edit=1