• 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

json_encode turns array into an object

How to use React Router with Laravel?

Redis Command To Sort Keys

I'm trying to write a clean url for my website using the $_SERVER['REQUEST_URI'] in php

Return new collection without modifying original collection

How to create a scheduler application in php

loop through an anchor id

How to to send mail using gmail in Laravel?

Exception thrown during the rendering of a template("Parameter "id" for route "url" must match "[^/]++" ("" given) to generate a corresponding URL.")

Not able to override collapsible.js in magento 2

Send same name multiple checkbox values via ajax

woocommerce get_order_report_data to show order_item_id

How to show a popup modal in codeIgniter?

How do I do HTTP basic authentication using Guzzle?

WooCommerce Subscriptions: Remove role on cancelled subscription

About Contact Privacy policy Terms and conditions