ID:               36301
 Updated by:       [EMAIL PROTECTED]
 Reported By:      sea dot iz at tiscali dot cz
-Status:           Open
+Status:           Bogus
 Bug Type:         MSSQL related
 Operating System: Win2000, Win2003
 PHP Version:      5.1.2
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.




Previous Comments:
------------------------------------------------------------------------

[2006-02-06 10:41:16] sea dot iz at tiscali dot cz

Description:
------------
I'm using following code for saving and retrieving images to and from
database (MS SQL 8.0). This works under PHP 5.0.2, but it stops to work
after upgrading to 5.1.2 and I must return to old version. Tested on
Win2000, WinXP and Win 2003 server.


Thanks for some help.

Reproduce code:
---------------
//my code:
//Saving images:

        $datastring = file_get_contents($filenam);
        $data = unpack("H*hex", $datastring);

        $qry = "update TABLENAME set IMAGECOLUMN."=0x".$data['hex']."
where KEYCOLUMN=$id";         $ret = mssql_query($qry, $Link);

//Retrieving images:
    $qry = "select IMAGECOLUMN from TABLENAME where KEYCOLUMN = $id";

    $result = mssql_query($qry, $Link);
    $row = mydb_fetch_array($result);
    header("content-type: image/jpeg");
    $nm = strtoupper($_REQUEST['IMAGECOLNAME']);
    echo $row["$nm"];


Expected result:
----------------
With 5.0.2 everything works correctly, but with PHP 5.1.2 there is no
error report while saving and no image result while retrieving.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=36301&edit=1

Reply via email to