INSERT … ON DUPLICATE KEY UPDATE Syntax
If you specify ON DUPLICATE KEY UPDATE, and a row is inserted that would cause a duplicate value in a UNIQUE index or PRIMARY KEY, an UPDATE of the old row is performed. For example, if column a is...
View ArticleHow can I execute PHP code on my existing myfile.html page?
When a web page is accessed, the server checks the extension to know how to handle the page. Generally speaking if it sees a .htm or .html file, it sends it right to the browser because it doesn’t have...
View ArticleWriting Your Own jQuery Plugins
jQuery is great. It’s cross-browser, easy to learn, and makes adding interactivity to your website a breeze. It also comes with plenty of plugins to do almost whatever you need it to do. But what if...
View ArticleHow browsers work
The browser main functionality is to present the web resource you choose, by requesting it from the server and displaying it on the browser window. The resource format is usually HTML but also PDF,...
View ArticleWordPress – custom form submission redirect to 404 page.
I found many people having this problem in WP. The problem was caused by the “global” parameter. Obviously, WP has something important internal reserved for that parameter. Global variable Global...
View ArticleMaking a simple math captcha using jquery
I wanted to write a simple Captcha that I could easily integrate into my own scripts that would work with or without Javascript. My first approach was to find open-source that I could pretty much just...
View ArticleHow To Speed Up WordPress
As a side note, these are not ordered by importance or any criteria, I’ve just gathered everything I’ve learned about speeding up page loads on WordPress and compiled them here. I guarantee that using...
View ArticleUsing Bitly URLs in WordPress and use them with Twitter and GooglePlus Scripts
Step 1 Preparing The Code Login to your bitly account. If you don’t have one, it takes only a minute to setup your account. After logging into your account, go to the settings page, scroll down almost...
View ArticleDifference between 2 dates in days, minutes and seconds
function dateDifference($date1, $date2) { $date1=strtotime($date1); $date2=strtotime($date2); $diff = abs($date1 – $date2); $day = $diff/(60*60*24); // in day $dayFix = floor($day); $dayPen = $day –...
View ArticlePHP date formats
DAYS d – day of the month 2 digits (01-31) j – day of the month (1-31) D – 3 letter day (Mon – Sun) l – full name of day (Monday – Sunday) N – 1=Monday, 2=Tuesday, etc (1-7) S – suffix for date (st,...
View ArticleSix things that dissenters don’t know about WordPress
Here are the six things that dissenters don’t know about WordPress: 1. WordPress is Incredibly Scaleable There is a misconception that WordPress can only handle small sites because it was built as a...
View ArticleLearn SEO basics
Search engine optimization (SEO) is the process of improving the volume and quality of traffic to a web site from search engines via “natural” (“organic” or “algorithmic”) search results for targeted...
View ArticlePHP Shorthand If/Else Using Ternary Operators (?:)
n essential part of programming is evaluating conditions using if/else and switch/case statements. If / Else statements are easy to code and global to all languages. If / Else statements are great but...
View ArticleWordPress Interview Questions and Answers.
Reblogged from LD Opensource: Why “WP to Twitter” plugin fail to submit an update to Twitter in WordPress? When creating your application, do not click the “create your access token” until you first...
View ArticleThe Best WordPress Plugins
On this page you will find the best WordPress plugins, ever. These are essential installations – but remember, Worpdress runs faster with fewer plugins, so don’t be tempted to install them all! Backup...
View ArticleLearn Ruby in 15 min
Spend 15 min to learn Ruby on http://tryruby.org/ Spend some more time here https://www.codeschool.com/paths/rubyFiled under: Wordpress
View ArticleUpload Multiple Image
This plugin adds a meta box for multiple images for all posts and pages. Download Plugin == Installation == 1. Upload plugin to the `/wp-content/plugins/` directory 2. Activate the plugin through the...
View ArticleMore Content
Guys please visit my new blog. And please subscribe for more new content which surely help you lot. Link: suhasrathod.comFiled under: Wordpress
View ArticleWhat is Cloud computing?
Cloud computing is a general term for the delivery of hosted services over the Internet. Cloud computing enables companies to consume compute resources as a utility — just like electricity — rather...
View Article