ID: 8297
Updated by: jmoore
Old-Status: Feedback
Status: Closed
Bug Type: *Function Specific
Assigned To: 

closed due to lack of feedback

Previous Comments:

[2000-12-16 15:25:39] [EMAIL PROTECTED]
Please provide a reduced code fragment (<15 lines) producing
this behaviour.
Put no database queries etc. in it to ensure that we can
reproduce it easily unless it is not 100% related to some db
(or similar) function.


[2000-12-16 13:10:43] [EMAIL PROTECTED]
// PHP Version 4.0.3pl1
// dbase_get_record Function error
// ================
// Boolean value shows always 0
// run this test!
// same result with dbase_get_record_with_names!

$dbname = "c:/tmp/test.dbf";
// Datenbank-"Definitionen"
$def =
array("Datum",       "D"),
array("Name",        "C",  50),
array("Alter",       "N",   3, 0),
array("Email",       "C", 128) ,
array("Mitglied", "L"),
// Generate table
dbase_create($dbname, $def);
// write two records
$record[3]='[EMAIL PROTECTED]';
dbase_add_record ($db, $record);
$record[3]='[EMAIL PROTECTED]';
dbase_add_record ($db, $record);
// open for read
$num=dbase_numrecords ($db);
echo "Number of rows: ".$num;
$nf  = dbase_numfields($db);
echo " Number of fields: ".$nf."<br>";
for ($recno=1; $recno<=$num; $recno++) {
$rec = dbase_get_record($db, $recno);
    for ($i=0; $i < $nf; $i++) {
    echo $rec[$i]."&nbsp;&nbsp;" ;
      if ($recno==1 && $i==4 ) echo "(=this Value should be -1!)";
    echo "<br>";



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at

PHP Development Mailing List <>
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