Re: Re: Dbase function problem AGAIN !!!

From: Date: Wed, 29 Aug 2001 05:29:34 +0000
Subject: Re: Re: Dbase function problem AGAIN !!!
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-11943@lists.php.net to get a copy of this message
Hi, See the exemple below, maybe help you. <? //Connect do database $db = dbase_open("customer.dbf",2); //get some info about database $numRecords = dbase_numrecords($db); //Get number of records $numFields = dbase_numfields($db); //Get number of fields //Get every record for($index = 1, $index <= $numRecords; $index++) { //Get a record $record = dbase_get_record($db,$index); print "<H3>Record $index</H3>\n"; for($index2 = 0; $index2 < $numFields; $index2++) { print "<B>Field $index2:</B>"; print $record[$index2]; print "<BR>\n"; } } //Close connection dbase_close($db); ?> "Unknown Sender" <bogus@news.php.net> wrote in message news:004701c105d9$a498bd40$539f4dd5@administrator... > No, I did not > > Haw can I do it in dbase_get_record function?? > > PS. Do you know if someone is going to fix bugs in dbase_** functions. There > are lots of them!! > ----- Original Message ----- > From: Kelvin <kelvinyip@hotmail.com> > To: <php-db@lists.php.net> > Sent: Friday, July 06, 2001 12:09 AM > Subject: [PHP-DB] Re: Dbase function problem AGAIN !!! > > > > Hi there, > > > > When u retrieve the data, did u specific the starting point. 0 or 1, > > because PHP is start from 0 bit. > > > > Kelvin. > > > > "Bartek Pawlik" <pawlikb1@poczta.onet.pl> wrote in message > > news:005401c0ffcd$848d3880$539f4dd5@administrator... > > > Why noone answer ? > > > > > > Hi > > > My problem is > > > I have dbf file, I get one record, one of the record's filed is binary > (32 > > b > > > its). The function dbase_get_record cut Least Sagnificant Bit from this > > file > > > , I of course I get wrong value. Can anyone help me? Is there sth wrong > > with > > > function? > > > > > > Thax in advance > > > Barteks > > > > > > > > > > > > -- > > > > > > Jezdzisz konno? > > > Ten konkurs jest dla Ciebie! [ > > > http://konkursy.onet.pl/emarket2/ ] > > > > > > > > > > > -- > > PHP Database Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > > For additional commands, e-mail: php-db-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > -- > > Jezdzisz konno? > Ten konkurs jest dla Ciebie! [ > http://konkursy.onet.pl/emarket2/ ] >

« previous php.db (#11943) next »