[FX.php List] record won't delete
Andy Gaunt
andy at fmpug.com
Sun Aug 20 15:13:40 MDT 2006
Ed,
Have you tried?
$EditRecordResult = $EditRecord -> FMDelete();
Andy Gaunt
Office: 321.206.3658
Mobile: 407.810.4722
andy at fmpug.com
http://www.fmpug.com
2006 FileMaker Excellence Award Winner
Recipient of FileMaker's 2005 "Mad Dog" Public Relations Award
For chapter locations, dates & times please visit the website at
http://www.fmpug.com If you can make it to a meeting, please RSVP at
http://www.fmpug.com/rsvp.php
-----Original Message-----
From: fx.php_list-bounces at mail.iviking.org
[mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Edward L. Ford
Sent: Sunday, August 20, 2006 5:10 PM
To: FX.php Discussion List
Subject: [FX.php List] record won't delete
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
_______________________________________________
FX.php_List mailing list
FX.php_List at mail.iviking.org
http://www.iviking.org/mailman/listinfo/fx.php_list
More information about the FX.php_List
mailing list