• 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 Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) on a sub query with "ROW_NUMBER() OVER PARTITION"

How to render html from a @foreach loop in a textarea

How to test a php login connected to a mysql db through xampp?

Add customer email and phone in "Order" column to admin orders list on Woocommerce

PHP only Hit Counter?

Detect a fetch request in PHP

Adding multiple items to WooCommerce cart at once

carbon generated datetime not stored correctly into the database

How to submit the custom form data in database in WordPress without plugin using ajax?

Dropdown with current value from Mysql

How do I pass the dynamic output of a php variable or php function to a CSS variable?

Cut an arabic string

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource [duplicate]

Artisan, creating tables in database

Send Outlook 2010 email using PHP

About Contact Privacy policy Terms and conditions