Dose anyone know why I can't get the dbase add or replace function to work ?
The dbase table is made up on the following
name c 20
active c 1
url c 50
login c 15
password c 15
start c 250
end c 250
I can open/read/close the table without a problem.
The code is as follows:
$dbname = "data/test.DBF";
if ( !$dbid = dbase_open($dbname,0) ) {
echo "Cannot open database : $dbname\n";
exit;
};
$numrecords = dbase_numrecords($dbid);$numfields = dbase_numfields ($dbid);
$data = array( $required_name,$required_active,$required_url,$login,$password,$required_start,$end );
//
print_r($data);
//
dbase_add_record($dbid , $data );
dbase_close($dbid);
The error comes back
Warning: unable to put record at 28
When I do replace I get a server 500 error
Thanks
The dbase table is made up on the following
name c 20
active c 1
url c 50
login c 15
password c 15
start c 250
end c 250
I can open/read/close the table without a problem.
The code is as follows:
$dbname = "data/test.DBF";
if ( !$dbid = dbase_open($dbname,0) ) {
echo "Cannot open database : $dbname\n";
exit;
};
$numrecords = dbase_numrecords($dbid);$numfields = dbase_numfields ($dbid);
$data = array( $required_name,$required_active,$required_url,$login,$password,$required_start,$end );
//
print_r($data);
//
dbase_add_record($dbid , $data );
dbase_close($dbid);
The error comes back
Warning: unable to put record at 28
When I do replace I get a server 500 error
Thanks