note 31625 added to function.odbc-binmode
| From: | andrea dot galli at acotel dot com | Date: | Mon, 28 Apr 2003 13:27:29 +0000 |
| Subject: | note 31625 added to function.odbc-binmode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-47206@lists.php.net to get a copy of this message | ||
Example: retrieve image from database.
<?php
$Link_ID = odbc_connect("DSN", "user", "pass");
$Query_ID = odbc_exec($Link_ID, "SELECT picture FROM categories");
// change to ODBC_BINMODE_CONVERT for comparison
odbc_binmode($Query_ID, ODBC_BINMODE_RETURN);
$Images = odbc_result($Query_ID, 1);
echo $Images;
?>
--
http://www.php.net/manual/en/function.odbc-binmode.php
http://master.php.net/manage/user-notes.php?action=edit+31625
http://master.php.net/manage/user-notes.php?action=delete+31625
http://master.php.net/manage/user-notes.php?action=reject+31625