[FX.php List] record won't delete
Jonathan Schwartz
jonathan at eschwartz.com
Sun Aug 20 15:20:10 MDT 2006
Edward,
It looks to me that the $Delete variable to set to "1" whether or not
the operation is successful. No?
Have you checked for error? Also, have to looked at the query using
"define("DEBUG", true);"
to see what FMP is receiving?
One more idea, if there is no error, perhaps the delete is getting
the wrong record? Check your record count before and after.
HTH,
Jonathan
At 5:10 PM -0400 8/20/06, Edward L. Ford wrote:
>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
--
Jonathan Schwartz
FileMaker 8 Certified Developer
Associate Member, FileMaker Solutions Alliance
Schwartz & Company
jonathan at eschwartz.com
http://www.eschwartz.com
http://www.exit445.com
More information about the FX.php_List
mailing list