DBASE
Posted: Thu Aug 28, 2003 4:40 am
When I run this code:
$db_id = dbase_open( "C:\Sample.dbf", 2);
$rec[] = "Frederic";
dbase_add_record($db_id, $rec);
dbase_close($db_id);
I get this error
Warning: Wrong number of fields specified in sample.php on line 9
The dbf table has only one field of type character. Line 9 is the dbase_add_record() line.
Could anyone tell me what is causing the error.
Thanks
$db_id = dbase_open( "C:\Sample.dbf", 2);
$rec[] = "Frederic";
dbase_add_record($db_id, $rec);
dbase_close($db_id);
I get this error
Warning: Wrong number of fields specified in sample.php on line 9
The dbf table has only one field of type character. Line 9 is the dbase_add_record() line.
Could anyone tell me what is causing the error.
Thanks