note 71870 added to function.dbase-get-record

From: Date: Wed, 20 Dec 2006 17:21:21 +0000
Subject: note 71870 added to function.dbase-get-record
Groups: php.notes 
Request: Send a blank email to php-notes+get-120792@lists.php.net to get a copy of this message
Nowhere in the documentaiont explains that if the entire DBF file is lacking a record for one whole column, you will not get a blank entry in your result from dbase_get_record(). You must use dbase_get_record_with_names(), it is the only safe way to read dbase files in PHP 4. For example, if you have a dbase file with 12 columns, but 3 of them contain no data in any record, then your array returned from dbase_get_record() will only have 9 sequential array keys and values, leaving you no way to figure out which are the missing columns. ---- Server IP: 66.163.161.117 Probable Submitter: 75.53.3.126 ---- Manual Page -- http://www.php.net/manual/en/function.dbase-get-record.php Edit -- https://master.php.net/note/edit/71870 Del: integrated -- https://master.php.net/note/delete/71870/integrated Del: useless -- https://master.php.net/note/delete/71870/useless Del: bad code -- https://master.php.net/note/delete/71870/bad+code Del: spam -- https://master.php.net/note/delete/71870/spam Del: non-english -- https://master.php.net/note/delete/71870/non-english Del: in docs -- https://master.php.net/note/delete/71870/in+docs Del: other reasons-- https://master.php.net/note/delete/71870 Reject -- https://master.php.net/note/reject/71870 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#120792) next »