What is Operators in PHP Operators let you do various operations like adding two numbers, joining two strings, comparing two values etc. There are two types of operators as binary and unary. Binary needs two operands to do the operation while unary requires only one. Assignment Operator Assignment operator is so common in PHP … Continue reading PHP Operator
Month: April 2015
If You Have a Following Error: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w'at line I Have A Solution: Solution 1: 1).Go To PhpMyadmin … Continue reading [Solved] MySQL #1064 Error in WordPress Migration
What is Backbone.js Backbone.js is a JavaScript library with a RESTful JSON interface and is based on the model–view–presenter (MVP) application design paradigm. Backbone.js is a popular open source JavaScript framework that allows us to develop single page web application. BackboneJS is not a framework but a library. BackboneJS is Created by Jeremy Ashkenas, … Continue reading Backbonejs Introduction
What is Node.js Node.js is an open source, cross-platform runtime environment for server-side and networking applications. Node.js applications are written in JavaScript, and can be run within the Node.js runtime on OS X, Microsoft Windows, Linux, FreeBSD, NonStop and IBM i. Node.js is a way of running JavaScript on the server. Node.js (Node) is … Continue reading NodeJS Introduction
The Loop The WordPress loop is PHP code that displays WordPress posts. The loop is used in WordPress themes to display a list of posts in a web page. Inside the loop there are some functions that are run by default to display posts. Theme developers can format the output by using template tags to … Continue reading WordPress Loop And Query
Whats is Exception: Exceptions give us much better handling of errors an allow us to customize the behavior of our scripts when an error (Exception) is encountered. Previously PHP dealt with errors by having error flags from functions and the trigger_error() function. These were well and good for pre-php5 days but in the new … Continue reading PHP Exceptions
Widget Code: Start by creating a new .php file in your wp-content/plugins directory. Call your file whatever you like, but I’m going with random-post-widget.php Paste the following into the file and save. Feel free to change the section at the top with my name in it, but don’t adjust the rest of the code … Continue reading How To Create WordPress Widgets
What is POST in WORDPRESS How to Handle WORDPRESS Post A CMS can have different type of content and wordpress is a CMS so it also holds different content that content is called post. All those posts are stored in same place in wordpress i.e. in the wp_post table in the database you created at … Continue reading WordPress Post
PHP Function Function are self contained block of statement which used to perform any specific task. Types of Function system defined/library/inbuilt user defined Advantages Of Function => A function is created once but used many times, often from more than one program.=> It reduces duplication within a program.=> Debugging and testing a program becomes … Continue reading PHP Function