Sybase problem.
| From: | Gural | Date: | Wed, 26 Jun 2002 09:58:15 +0000 |
| Subject: | Sybase problem. | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-20133@lists.php.net to get a copy of this message | ||
Hello,
I have problem with Sybase. When I try to get data from binary column
using sybase_query, the output consist of 4, most significant digits
only, wheras the rest is omitted. My PHP script looks like follows:
----------------------------------------
<?
$conn = sybase_connect ( ..... , ... , ....);
echo $conn;
echo "\n";
echo "\n";
echo "<HR>";
sybase_select_db ( "my_db", $conn);
$res = sybase_query ("select TestColumn from TestTable", $conn);
echo sybase_num_rows($res);
echo "<HR>";
$r=sybase_result($res,0,0);
echo "$r<br>" ;
?>
---------------------------------------
Value $r after execution of query is 0001 whereas it should be something
like 00012354.
I've tried meny variations of that simple script without success.
I'll be gratefull for help.
Gural.