sql >> Database >  >> RDS >> Mysql

laad een php-querybestand in een html-indexpagina met ajax of jquery

$(document).ready(function() {

jQuery.ajax({
        type: "POST",  //  this is post request u can also do get request
        url: "query.php", 
        dataType: "text",

        success: function (response)  // this is the response from  url: "query.php",
        {
          alert(response);    //alert responce from  query.php and here you can do 
                              //                   whatever u like with response.
        },
        error:function (xhr, ajaxOptions, thrownError)
       {
          alert(xhr); // if any error function.

       }
});

});


  1. Hoe toegang krijgen tot de Oracle-database via het netwerk?

  2. Hoe kan ik de rij met de hoogste ID selecteren in MySQL?

  3. Is een enkele SQL Server-instructie atomair en consistent?

  4. MYSQL_ROOT_PASSWORD is ingesteld maar krijgt toegang geweigerd voor gebruiker 'root'@'localhost' (met wachtwoord:YES) in docker-container