Re: dbase and PHP
| From: | Jason Bourne | Date: | Wed, 26 Sep 2001 07:43:45 +0000 |
| Subject: | Re: dbase and PHP | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-9538@lists.php.net to get a copy of this message | ||
Darius,
Looking at the results i think this is the first record you put in your db.
everytime you put an other record in your db you ask for your first record
to display. Tray to get the last record or first empty your table before
running this script.
Regards,
Jason
"Darius Burlega" <darius.burlega@electrolux.lt> wrote in message
news:OF1C162ABA.9B433117-ONC2256AD3.0021AC80@ed.electrolux.se...
> 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
>