• 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

Symfony Mercure "Failed to send an update"

add uri parameter to Route name in laravel

Substitute integers and dots with regex [duplicate]

Using array_intersect on a multi-dimensional array

Make Calculator - When Button clicked the No shows in Textbox.

Dynamic table in HTML using MySQL and php

How to get company posts from LinkedIn via API?

Destroy session upon refresh

Currently Using CodeIgniter Framework i have an Error

Can't call javascript alert alertify library from PHP

PHP file_get_contents function

PHP Discord OAUTH2 code sample not working

Laravel Jetsream Profile page not loading on fresh install

Add 2 Webcam in one page with WebcamJS

How to execute sql code based on fetch array

About Contact Privacy policy Terms and conditions