dbase and PHP
| From: | darius dot burlega at electrolux dot lt | Date: | Wed, 26 Sep 2001 06:15:12 +0000 |
| Subject: | dbase and PHP | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-9534@lists.php.net to get a copy of this message | ||
Hello,
I'm working with dbase files and PHP on Apache (W2K OS), One of the dbase
colums are number's type and 11 simbols width. When I run command
dbase_get_record(gg.dbf,1) and the value is larger than 10 simbols, I
always got wrong result.
Maybe anybody knows how to fix this problem?
Here is my little php script
<?php
$ff =
array(
array("string", "C", 11 ),
array("number", "N", 11,0 ),
array("number1", "N", 11,0 ),
);
dbase_create('ff.dbf',$ff);
$k=dbase_open('ff.dbf',2);
dbase_add_record($k,array('452368754789',14578578587,147856));
$vv=dbase_get_record($k,1);
echo $vv[0],"<BR>",$vv[1],"<BR>",$vv[2];
?>
And here answer :
45236875478 - string
2147483647 - number
147856 - number
Thank you in advance.
Darius