• 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

Laravel Excel::store file empty after stored

How to display MySQL table using php and edit it in a web browser

Clear javascript source cache laravel 5.8

carbon generated datetime not stored correctly into the database

Get number of working days between two dates in PHP [duplicate]

Get Header Authorization value of a login api (sent with username and password in json body) using php curl

How to create a individual template for page or post in custom plugin?

How to fix this error : Ask your hosting provider to use PHP 7.2.5 or higher for both HTTP and CLI?

Mobile browsers are adding .html to filename on download

Get keys from associative array [duplicate]

OctoberCMS / Anonymous Global Scope

WordPress + Nginx on non-standard port behind AWS ELB results in broken links

Object of class stdClass could not be converted to string error

Distribute array row data to make multiple new rows

How do I remove this delivery notification from here?

About Contact Privacy policy Terms and conditions