IDIOT DEVELOPER

Creating Web Services in PHP
Creating Web Services in PHP
DOWNLOAD

Web services is a standardized way or medium to propagate communication between the client and server applications on the World Wide Web. A web service is any piece of software that makes itself available over the internet which takes request from the client and give responses to the requests that the server received from the […]

Read More
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
Exceptions in PDO (PHP Data Object)
Exceptions in PDO (PHP Data Object)

In some of the previous posts, we have learn about the PDO (PHP Data Object). In this article we are going to deal with Exceptions in PDO. It is always necessary to wrap a PDO statement in a try/catch block. As there can be chance that any error may occur, so to handle those errors we […]

Read More