Categories
Creative blog

Lower your bounce rate with attractive landing page

A simple and easy way to colorful your website landing page that attracts people and low down your website bounce rate i.e. lower your bounce rate. Basically landing page means the first page of the website where users come and if they like they can go or other links. Bounce rate means after coming to […]

Categories
Php WordPress

Associate image with your WordPress profile

Using Gravatar you can make an Image as a WordPress profile picture that are associate with a email address registered with. When browsing multiple web sites, you may notice that so many users have a picture next to their name i.e. called “avatars” and WordPress has this type of avatars i.e. called “Globally Recognized Avatar” […]

Categories
Creative blog Php WordPress

Execute PHP code in WordPress Sidebar

Want to add PHP code in your WordPress widget? Here are two WordPress plugin by which you can add PHP code in sidebar widget. Developer can easily do this functionality without any widget but for a non-programmer this may be quite difficult task. Sometimes it is necessary to run a PHP code in the sidebar […]

Categories
AngularJS

AngularJS custom directives

To extend the functionality of HTML in AngularJS, custom directives are used using “directive” function. This simply replaces the element for which this is activated. Using its compile() method AngularJS application finds the matching elements and process for one time activity. For the following types of elements AngularJS provides support to create custom directives. – […]

Categories
AngularJS

AngularJS services

AngularJs services are javaScript function that perform a specific tasks only. Using dependency injection mechanism services are normally attached. AngularJS provides some build in services i.e. $http, $route, $window, $location etc where each service is responsible for different tasks. For example, $http is used for ajax call, $route is for routing information. There are two […]

Categories
MySQL

MySQL Best Practices

Sometimes we may face about performance issues while opening a website. Not only databases but we need to optimize our programming code also. MySQL Best Practices means few tips to optimize the MySQL query: Avoid SELECT * and use particular fields from a table what you require. Use ENUM rather than VARCHAR because ENUM type […]

Categories
Css3

5 CSS tricks for responsive design

Making a website rather than mobile view is easy but now a days you must have to build the view on mobile also. You need to know some CSS tricks. Here are some CSS tricks which will help you to maintain responsive design: Word wrap is necessary to forcefully break the text into new line […]

Categories
MySQL

MySQL CASE Statement

MySQL has an alternative of IF statement i.e. MySQL CASE statement by which you can check conditional statement. Besides the IF statement in MySQL, this provides an alternative conditional statement i.e. called CASE. The MySQL CASE statement makes the programming code more readable and efficient. You can use the simple CASE statement to check the […]

Categories
Php

PHP date() and strtotime() return wrong months on 31st

On 31st of every month you will get a wrong month value while using date() or strtotime() functions. In that case you need to pass the date of the first day of the current month as a second parameter to the strtotime() function. For example: $base_month = strtotime(date(‘Y-m’,time()) . ‘-01 00:00:01’); echo date(‘Y-m’,strtotime(‘-1 months’, $base_month)); […]

Categories
MySQL

MySQL Query Functions

There are so many MySQL functions that commonly used to minimize the statements like string operation functions, date time functions, aggregate functions etc. MySQL LAST_INSERT_ID To get the last generated sequence number of the last inserted row. SELECT LAST_INSERT_ID(); MySQL CAST() To convert a value of any type into a value with a your own […]