• 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

PHP: PDO + CSV export not downloading (headers issue?)

How to install PHP composer inside a docker container

php - add comma thousands separator but remove trailing zeros

Dynamic dropdown Ajax PHP request

Custom Button next to “ADD TO CART” button of WooCommerce based on Product Type

(Cache::lock()) -> get() -- Under what conditions does it return false?

Warning: mysqli_stmt::bind_param(): Number of elements in type definition string doesn't match number of bind variables 11 [closed]

ORA-12546: TNS:permission denied error connection to remote oracle server

Error converting docx to pdf using Unoconv

Maatwebsite Excel 3.1 : how do I skip duplicate data when imported?

PHP Warning: Module already loaded in Unknown on line 0

Composer Warning: openssl extension is missing. How to enable in WAMP

VB.NET WebRequest with PHP POST

Implode array with array of glue strings

Inserting data into SQL Server Db An Invalid direction was specified

About Contact Privacy policy Terms and conditions