IDIOT DEVELOPER

Submit Form using jQuery AJAX in PHP
Submit Form using jQuery AJAX in PHP

The AJAX forms seem to be used everywhere. In fact, most PHP web app development project are now being developed with AJAX forms. And, if you look at any Jquery Ajax Post example, then you are at the right place. In this tutorial we are are going to build a simple HTML form and submitting […]

Read More
Loading Locations from MySQL Database and Display Them on Google Maps
Loading Locations from MySQL Database and Display Them on Google Maps
DOWNLOAD

In previous tutorial we have learn how to display user current location on the Google Map. In this tutorial we are going to load the different locations(latitude/latitude) from the MySQL Database, and display all of them on the Google Map.   We need to include these two scripts:   <script src=”https://maps.googleapis.com/maps/api/js?key=API_KEY&callback=initMap” async defer></script> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js”></script> […]

Read More
Querying Data using PDO (PHP Data Object)
Querying Data using PDO (PHP Data Object)

This article is about fetching or retrieving data from the database using PDO (PHP Data Object). So if you are new to PDO then see some of my previous post.   1. Introduction to PDO 2. Connecting to Database using PDO 3. Exceptions in PDO 4. Prepared Statement in PDO .   Querying data is […]

Read More
Prepared Statement in PDO (PHP Data Object)
Prepared Statement in PDO (PHP Data Object)

A prepared statement is a precompiled SQL statement that can be executed multiple times by sending just the data to the server. It has the added advantage of automatically making the data used in the placeholders safe from SQL injection attacks.   Using prepared statements will help protect you from SQL injection.   PDO supports […]

Read More