FX.php question
| From: | Gremillion | Date: | Mon, 18 Aug 2003 12:02:48 +0000 |
| Subject: | FX.php question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-159905@lists.php.net to get a copy of this message | ||
I am working with FX.php to interface with a Filemaker database. I can add or edit db entries with a straight list of parameters, but it fails with a dynamically generated list of parameters here with a for loop, but the behavior is the same with foreach.
Any suggestions would be appreciated.
Randall Gremillion
$Add = new FX($serverIP);
$Add->SetDBData("Account_Reports.fp5", "All");
$Add->AddDBParam('-recid', '3');
$Add->AddDBParam('week1.txt', 'tescddddxzt');
$Add->AddDBParam('week2.txt', 'tesxdzct');
$Add->AddDBParam('week3.txt', 'sds');
$Add->AddDBParam('week4.txt', 'tezxdscst');
$Updated = $Add->FMEdit();
if (count($updateEntries)>0) {
for ($i=0; $i<count($updateEntries); $i++) {
$Add = new FX($serverIP);
$Add->SetDBData("Account_Reports.fp5", "All");
$boo = $updateEntries[$i][0];
$Add->AddDBParam('-recid', $boo);
for ($j=0; $j<count($updateEntries[$i][$boo]); $j++) {
$Add->AddDBParam($updateEntries[$i][$boo][$j][0], $updateEntries[$i][$boo][$j][1]);
}
$Updated = $Add->FMEdit();
}
}