• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Refresh specific HTML content that retrieves data from MySQL

javascriptphphtmlmysql


PHP Snippet 1:

    $(document).ready(function(){
        $('#btn_submit').click(function(){
            var get_data = $('#new_base').val();
            
            if($.trim(get_data) != '')
                {
                    $.ajax({
                        url:"db2.php",
                        method:"POST",
                        data:{new_base:get_data},
                        dataType:"text",
                        success:function(data)
                        {
                            $('#new_base').val("");
                        }   
                    });     
                }   
        });         
        setInterval(function(){
            $('#load_data').load("fetch.php").fadeIn("slow")
        }, 1000);
    }); 

Related Snippets

Match single unknown parameter php (Morse-code Regex)

Woocommerce Checkout - Add conditional field required if one field is filled

Yoast SEO (WordPress Plugin) - Get plugin generated data manually

Laravel You requested 1 items, but there are only 0 items available

What is my SQL missing?

Codeigniter, Severity: error --> Exception: Too few arguments to function, admin dashboard shows HTTP error 500

Add 2 Webcam in one page with WebcamJS

PHP: Insert marker every 3 iterations

How to show selected value using javascript in laravel

How to get rid of ampersand using WP Nonce URL and WP Redirect or PHP header

Pages are working fine on localhost but not running on the hosting server

Edit XML in HTML form and submit to self

Make certain characters of a word from string bold

Unit (real unit test) of test laravel relationship

error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure

About Contact Privacy policy Terms and conditions