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" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to