Author Archive

Introduction of Web and PHP & Mysql part 1

Introduction of Web and PHP & Mysql In this series of articles we will look into basics of world wide web (commonly know as WWW) and then Php & Mysql. We will work on real world examples and APIs. So let us start. Before diving into world of web development we need to know some

Pagination example in Php Yii Framework

Pagination example in Php Yii Framework While working we need to perform pagination.  Whether to show the list of articles, users or products, we need pagination. In Yii it is very easy to implement pagination. [crayon-5bc95d79cef31248597748/]   The above code will get 10 results per page from Database. [crayon-5bc95d79cf01c045214325/] You can also find more detail on

Include JavaScript and CSS file in Yii Framework

Include JavaScript and CSS file in Yii Framework While working on a project in YII in beginning I came to know a very nice way of including JavaScript and CSS style files in the Layout / View file  in YII Framework. In YII we use [crayon-5bc95d79d0211767242562/] and [crayon-5bc95d79d0225215406061/] functions. Please see the code below. [crayon-5bc95d79d0232568180207/]

MySQL, add a string in start of all column values

MySQL,  add a string  in start of all column values Recently I come  to know a very cool function in mysql that is CONCAT.   There  is a table in mysql database known as tbl_clients.  Structure of this table is as follows: [crayon-5bc95d79d1289941199053/] there were more than 500 clients having website homepage URLs and all URLs

Insert a document using NodeJs and mongoDB

Insert a document using Node.js and mongoDB Suppose  you have a mongoDB database for courses and you want to insert a record into the database using Node.js. First step is to install mongoDB driver for Node.js  If it is not already installed. Please open command line and run following command. [crayon-5bc95d79db394170084148/] This will install mongoDB

NodeJs and Express framework basics

NodeJs and Express framework  basics We have already learned how to select data from MongoDb using Nodejs findOne. In this article we will create a baisc Hello World program using NodeJs and Express. Consider a following program below. [crayon-5bc95d79ea977610162653/] In our first line we need to include ‘express’ module. If express is not already installed

Node Js, MongoDb select record with findOne

Node Js, MongoDb select record with findOne To select a single record from mongoDB database using  findOne() function  in Node Js [crayon-5bc95d79ebf38958496856/] In the code below we use require function to include the  module ‘mongodb’.MongoClient and is assigned to a variable MongoClient [crayon-5bc95d79ebf4b405663213/] After including mongodb module we have to connect to the server. Consider

Angular Js – Introduction

Angular Js – Introduction Angular Js is very popular JavaScript Framework. We can say it a futuristic web standard for web development. It is developed and supported by Google and has a huge vibrant community of users. Angular is in class of frameworks that are called Data Bindings Frameworks. These data bindings frameworks are used

New features in PHP 5.6

New features in PHP 5.6 There are some very exciting features  in PHP 5.6 release. In this article we will look into new features introduced in PHP 5.6. File Upload Limit: Before PHP 5.6 upload limit was less then 2 GB but in PHP 5.6 uploads over 2GB are supported. Variadic Functions: Varidaic functions are

Fundamentals of android application development

In this article on fundamentals of android application development we will discuss 4 basic building blocks of android application development from which android apps are built. These building blocks are implemented as java classes. First of these building blocks is the Activity Class. This is the main class that users see when the run an