Well, things WERE going good but now I have a problem with dbase add and replace commands. Thought I'd just add it to this thread since the subject seemed appropriate but maybe this is a bit beyond a "Newbie" forum (even though that's what I am

). Here's what I have:
Code:
$dbfile = "s:\\PISSK\\DATA\\TEST.DBF";
$db = dbase_open($dbfile, 2)
or die("Error! Could not open dbase database file '$dbfile'.");
$row = dbase_get_record_with_names($db, 1);
unset($row['deleted']);
dbase_replace_record($db, $row, 1);
dbase_add_record($db, $row);
dbase_close($db);
print_r($row);
And here's what I get back:
Code:
C:\PHP>php x:test.php
Content-type: text/html
X-Powered-By: PHP/4.3.10
<br />
<b>Warning</b>: unexpected error in <b>x:\test.php</b> on line <b>8</b><br />
<br />
<b>Warning</b>: unexpected error in <b>x:\test.php</b> on line <b>9</b><br />
Array
(
[FIELDA] => aaaaa
[FIELDB] => 1
[FIELDC] => AAAAA
)
The dbf file has three fields in it (char10,num10,char10) and a few records. I can't get the REPLACE to work nor the ADD (which I tried just to see if it worked). Anyone know how to debug what the "unexpected error" is?