Jump to content

API error in the code?


This topic is 3294 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hello,

I have a problem I shall post a page index.php

My I can not create or delete contacts

I visualized, or search for a contact in my database it appears right

Pourais someone watching or I wrong in my code

thank you

------------------------------------------

<?php



    $addCommand = $fm->newAddCommand("web_contacts", $donnees);
    $result     = $addCommand->execute();


    if ( FileMaker::isError($result) ) {
        $erreur_ajout     = "Erreur : " . $result->getMessage();
        
    }

}

if( isset($_GET["action"]) && $_GET["action"] == "supprimer" ) {

    $deleteCommand     = $fm->newDeleteCommand("web_contacts", $_GET['recid']);
    $result         = $deleteCommand->execute();

    
    if ( FileMaker::isError($result) ) {
        $erreur_suppr     = "Erreur : " . $result->getMessage();
        }

}

?>

 

Edited by SHMUEL
formatting
Link to comment
Share on other sites

This topic is 3294 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.