Skip to main content
PHP Pdo CRUD class

PHP PDO OOP CRUD Class with Bootstrap

Share onShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

In this Article we are going to learn about PHP PDO class, which can perform Create, Read, Update and Delete (CRUD). If you don’t know about PDO please refer to the PDO reference link before heading to this article.

Download

File Structure

Our File Structure will be as following:

File structure

Database Schema

Create Database named pdocrud and import the following table. Use following mysql query which will create a User table with 4 fields. id, firstname , lastname, and email.

Configuration

In the file structure you can see the config.php, which is our configuration file. This file is responsible for our database connection, and we also include our CRUD class here like include_once 'class.php-crud.php'; use the following code for the config.php file.

ios-php-push

IOS Push Notification PHP class using Apple Push Notification Service (APNs)

Share onShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

Apple Push Notification Service (APNs) is the center peace of the remote notification features. It is quick and highly efficient service for receiving notification throw-out the IOS devices. Apple Push Notification service sends and routes remote notifications for your apps from your provider to each user’s device. You can send notifications through APNs to many devices on which the client apps are installed. You can find more about APNs on official Apple developer site at https://developer.apple.com/. This tutorial is dedicated to Ankit Kansara who submitted a request throw our Request a Tutorial page for Ios PUSH NOTIFICATION PHP Class

php7

Installing PHP 7 on WAMP server (For windows)

Share onShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

The PHP community has released major update over a decade as PHP 7. PHP 5 brings many exited features like support of Object oriented programming and many related with that.

You guys may wonder why PHP community released PHP 7 just after PHP 5 why there is no PHP 6? Well requirement for PHP 6 were not defined clearly and most of the people not agreed with, so the project ground to the halt. Almost all the features defined for PHP 6 were already implemented in PHP 5.3 and it’s later versions of PHP 5. So we almost got everything, which was documented for PHP 6, when features set for a major release community decided to avoid confusion with dead project and skip to PHP version 7 with the major updates.

android-php-push

Android Push Notification PHP class using Google Cloud Messaging (GCM)

Share onShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

Google cloud Messaging (GCM) is a service that helps developer to send push notification data to any Android devices. With help of this feature developer can send push message to Android device whenever new data or promotion offers arrives in Android application.

Today lots of Android applications using Google cloud Messaging service to send multiple push messages to multiple Android devices. You can find more at it’s official document at https://developers.google.com/cloud-messaging/

Push Notification flow with PHP Web Server APP and GCM

android_push

  1. Android device send Sender Id and application Id to GCM server.
  2. GCM server generates unique registration Id and sends them back to Android device.
  3. Android device sends registration Id to PHP web server application.
  4. PHP web server stores registration Id to Database for later use.
  1. When server needs to send Push Message, It fetch previously stored registration Id from Database
  2. And send them to the GCM server along with the push message data.
  3. GCM server will send that message to particular Android device using device registration Id
git-branches

Understanding Git Branches

Share onShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

This tutorial is an introduction to Git Branches, it is dedicated to Kenth Hagström who submitted a request throw our Request a Tutorial page for GIT branching and team development. For readers, we assume you have already read and understand our first tutorial for Introduction to Git commands and Version control system. This is the second tutorial of the Git commands series.

Introduction to Git Branch

Git branch is a general branch management tool from Git, it lets you create, list, rename and delete branches. There is no storage and memory overhead issue when you making many branches so it is easier to logically divide up your work than have big bulky branches. Now let’s dig into the Git Branches commands.

Muti color map marker

Google Map with Multiple color Markers PHP – JavaScript/jQuery

Share onShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

In this tutorial We will learn how to display responsive Google Map with multiple color marker, It is also dedicated to one requester who submitted a request throw our Request a Tutorial page for Making Google map area to fit all markers inside map we also cover that point here.

Try Demo

Google Map Api

We will use gmaps JavaScript to display Google map with multiple Latitudes and longitudes data to show our different color marker pins. We will also use Google Map Geocode Api to fetch Lat and lng from location name.

PHP array for Multiple Location

Fetching Lat, Lng and address information from above array with the help of Google Map Geocode API

push-notification

Push Notification to the browser with Javascript

Share onShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

Push notification to the browser is a way to send an information message to the browser same like you experiencing in mobile Apps like Facebook or Whatsapp.

You can do so using a simple jQuery and Javascript code, Today we will only cover the Javscript part in this tutorial.

Try Demo

Ask User for notification permission

First of all we need to request for the permission to user to allow browser notification.

notification-permission

 

Initialize the notification object

If user have granted for notification, we need to initialize the notification object where we need to pass few parameters

Youtube video as page background

How to play Youtube video as page background using jQuery ?

Share onShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

You might have seen some website which have video played on the background which automatically fit to screen and play when you access the page. Today I will show you how you can set Youtube video as page background using jQuery.

Watch Demo

jQuery Background video

We will use jQuery backround video V1.0 for our example, jQuery background video V1.0 is the plugin that lets you set the youtube video as page background.

Steps to add Youtube video as page backround

First of all create one index.html file and add following code, you need to add an id to <div>.

 

Progress bar

Youtube Like Progress bar using jQuery Nprogress.js

Share onShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

If you ever notice on Youtube you have seen a progress bar on top of the page, which shows you the page loading time. Now a days most of the Apps and Web pages are using this kind of Progress effect to attract viewer and force them to stay for few seconds on page until it loads.

The dynamic in-site progress bar on Youtube shows the loading animation on the top header area till the video or page load completely in the browser. Normally loaders are the rounded .gif images with different effects, which shows a progress but here the progress loader bar is actually a slim progressive line on the top of the header, which loads from left to right or vise versa until the page finish the loading stage.