In the return call function to execute a query in MySQL

1

I need to query my DB when returning from a insert , but I'm not able to implement it. I have this in return:

        $.post(
        'GravaFase.php',
        params,
        function( json, textStatus, jQxhr )
        {               
            if (json.status != "ERRO") {
                var msg = '<div class="alert alert-info" role="alert">' + json.msg + '</div>' ;
            } else {
                var msg = '<div class="alert alert-danger" role="alert">' + json.msg + '</div>' ;
            }
            $("#resultado-fase").html(msg); 

            // APÓS CARREGAMENTO COMPLETO DA PÁGINA
            $(document).ready(function() {
                $("#resultado-tabela").load("DetalhesContrato.php", {IdContrato: 34});
            });     

        },
        'json'
    )

I would not like to reload the page again, just pass the parameter and execute a select, I am using load . Is there anything that can be done?

    
asked by anonymous 31.07.2015 / 22:59

0 answers