[FX.php List] record won't delete
Edward L. Ford
elford at cs.bu.edu
Sun Aug 20 15:10:21 MDT 2006
Hello,
I'm attempting to get a record to delete, but it refuses to do so with
the following code:
# Needs the record ID to edit or delete a record
$EditRecord->AddDBParam('-recid', stripslashes($_POST['RecID']));
# Declare all inputs from HTML form
if(! (strstr($_POST['delete'], 'Yes') === FALSE)) {
$EditRecord -> FMDelete();
# Set a delete flag (Used to display delete confirmation later on)
$Delete = 1;
}
I know the block with the delete command is entered because I get the
delete confirmation message -- but the record is still in the database.
I also tried $EditRecord -> FMDelete(true); which did not work.
Anyone see my mistake?
Thanks,
--Ed Ford
More information about the FX.php_List
mailing list