How to add Auto suggestion in Jquery by customer name for customer id

T o add Auto suggestion in jquery for customer name and customer id

 $('#customer_name').autocomplete({
    source : function (request, response) {
        $.getJSON("ajax_angular_view.php?action=view_customers", {
            term: request.term
        }, function(data) {                     
            var array = data.error ? [] : $.map(data.Clist, function(m) {
                return {
					
                    label: m.name,
                    value: m.value
                };
            });
            response(array);
        });
    },   select: function (event, ui) {
		  event.preventDefault();
        $("#customer_name").val(ui.item.label); // display the selected text
        $("#user_id").val(ui.item.value); // save selected id to hidden input
        return false;
          }
,    focus: function(event, ui) {
        event.preventDefault();
        $("#customer_name").val(ui.item.label);
    }
});

ajax_angular_view.php?action=view_customers Result should be

{“Clist”:[{“name”:”Hareram Sharma”,”value”:”1″},{“name”:”Jitender”,”value”:”2″},{“name”:”soni”,”value”:”3″}]}

How to install LAMP in AWS server

Amazon Web Services is a one of the most flexible hosting service providers,but most of them are facing difficult how to install  LAMP (Apache , MySQL and PHP ) in AWS with out using paid Cpanel service . Here am going to ellobrate by steps how to install LAMP in AWS server

1 Install Apache

# sudo yum install httpd

# sudo systemctl start httpd.service

#sudo systemctl enable httpd.service

Try https://IP ADDRESS in browsers

 2  Install Database

#sudo yum install mariadb-server mariadb

# sudo yum install mariadb-server mariadb

# sudo mysql_secure_installation

#sudo systemctl enable mariadb.service

3) Install phpMyAdmin

# sudo yum Install phpMyAdmin

Try  http://yourIPaddress/phpmyadmin

how to insert Hindi language in MySQL,now ???? is coming in DB

We have to add different languages like Hindi,Marathi, Tamil etc inside text filed as per the required. Normally if you insert Hindi it will come ?????????? instead of characters in DB.To avoid this situation we have to set the DB to utf8 COLLATE utf8_unicode_ci.It support other character set also.Here am going to explain how to set it ,to insert Hindi language in MySQL we have to do below action

ALTER DATABASE CHARACTER SET utf8 COLLATE utf8_unicode_ci;