Author

Raja sekar

Browsing

Live search in PHP and Mysql using Jquery

This tutorials is to know how to integrate live search in php and MySQL using jquery. Searching is one of the most required feature in web sites and if it will be live searching it will show you fast result on page. In this tutorial we will create a database and a table insert records and start searching in it.

Demo       |

This is a very simple script which has 2 files. One is an HTML (index.php) file with a Search input box and the second is a PHP (do_search.php) file that has a regular MySQL connect(db.php) and a select statement to get the data from database. This script also has a Loading message shown while the data is being pulled from MySQL. Please note that live search might use more resources from your server. It might result in server overload / slowness if your infrastructure is limited.

Step1 : Setup your database and table in MySQL
Before you run this script make sure you have created a database and table in MySQL. Below is the sample sql command to create a database, table, and insert some dummy rows.

Step 2: Index page for search form. 
Create the live form for searching.

Step 3: Creating a do search for getting data from database.
Create the mysql query for getting the data from table using like” options.

Step 4: jquery code for get the search value and pass to do_seach page. 
Using the jquery you can get the search word and pass to the next page using variable and post method.

Step 4: Add css code fro your design.

You can now demo the script and get the live code., That’s it enjoy the code. Please subscribe. 

How to Setup W3 Total Cache to Optimize WordPress Websites

We are going to use w3 total cache to Optimize WordPress websites. By default WordPress is a dynamic CMS (Content Management System). This means that for every visitor request that WordPress has to process, it must first connect to the database to see if the requested page even exists.

Why using the W3 Total Cache plugin ?

It’s free and very effective. The W3 Total Cache plugin has been around for years and is successfully used by millions of websites. However, it can be a little tricky to setup when you start using it, that’s why we propose this simple guide for the Customize theme.

Using W3 Total Cache plugin enables the process of storing data from existing requests to be re-used for subsequent requests.  Caching prevents repeating database request and serving of same information, by storing data that has already been asked for and serves it up instantly.

W3 Total cache will also help you reduce the sizes of your page by  compressing it (HTML, CSS, JavaScript) before it’s actually renders by your browser.

How to Optimize?

One of the simplest WordPress caching plugins is W3 Total Cache plugin and easy to setup in the word press website.

However if you need more advanced caching options such as the ability to serve a static 404 error page the steps below will walk you through installing and configuring the W3 Total Cache plugin for WordPress

Step 1: Hover over Plugins in the left-hand menu, then click Add New.

plugins-add-new

Step 2: In the Search box, type in w3 total cache and click on Search Plugins.

click-search-plugins

Step 3: Under W3 Total Cache click on Install Now.

click-install-now

Step 4: Click Activate Plugin.

click-activate-this-plugin

Step 5: From the left-hand menu, you should now have a new Performance section, hover over this and click on General Settings.performance-general-settings

Step 6: Enable the options which you want to have the cache.

These would be:

Page Cache

w3tc-setting-page-cache

Minify

w3tc-setting-minify

Database Cache

w3tc-setting-database-cache

Object Cache

w3tc-setting-object-cache

Step 7: Hover over Performance again in the left-hand menu, and click on Page Cache.

performance-page-cache

Step 8: Ensure that these options have a check mark beside them, then click on Save all settings:

Cache home page

Cache feeds: site, categories, tags, comments

Cache 404 (not found) pages

Cache requests only for example.com host name

Don’t cache pages for logged in users

performance-page-cache-save-all

Finally to confirm that you’ve setup everything correctly, in your web-browser open up your site and hit (Ctrl-U), or go to View -> Page source to view the source of the page. Scroll to the very bottom of the page and you should see the W3 Total Cache banner letting you know the page has been optimized.

w3tc-confirm-page-source

 

Results With Google PageSpeed Insight

WordPress with W3 Total Cache

file-ojnmmmyqpt

 

 

20 Classic Sidebar Menu Layout Design with Examples

There is many sidebar menu layout designs there. but the more classic designs attract the clients and customers. The sidebar menu was most common back in the early days of web design, but these days we’re starting to see designers ditch the horizontal navigation bar in favour of the vertical list once again. The sidebar menu seems to be coming back into fashion once again after it was left behind for horizontal navigation bars.Today’s web design showcase features 20 sites that all feature modern examples of the classic sidebar menu layout.

Design Council

20

 

 

 

 

 

 

2Creative

19

 

 

 

 

 

 

PFD

18

 

 

 

 

 

 

TriplAgent

17

 

 

 

 

 

 

Kick Point

16

 

 

 

 

 

 

Broken Twill

15

 

 

 

 

 

 

Drawtoclick

14

 

 

 

 

 

 

Gareth Emery

13

 

 

 

 

 

 

Sculpt Communications

12

 

 

 

 

 

 

Georgina Bousia

11

 

 

 

 

 

 

ZINDHAI

10

 

 

 

 

 

 

PUSH Collective

9

 

 

 

 

 

 

The Conference by Media Evolution 2014

8

 

 

 

 

 

 

Q Ideas

7

 

 

 

 

 

 

Niche

6

 

 

 

 

 

 

FLIPP

5

 

 

 

 

 

 

Hyperakt

4

 

 

 

 

 

 

Electrik Company

3

 

 

 

 

 

 

Wallmob

2

 

 

 

 

 

 

Mammoth Media

1

 

 

 

 

 

 

 

Creating a Side Menu Floating Using jQuery and CSS

For this tutorials, We are try to create a Left Side Menu Floating Using jQuery and CSS. It means we are going to fixed the side menu while scroll the page. For the long page with contains many paragraph, readers difficult to drag up and click the next articles . so wen need to scrool the side menu it is the easy way to client for select next articles. That why we are going to do this articles

So here we go Creating a Side Menu Floating Using jQuery and CSS
Demo       |

Step 1 – HTML

Step 2 – CSS

using the css, you can make scroll the left side menu.

Step 2 – jquery

This above jquery is used to fixed the left side bar and make the left side menu scroll. This is simple code and enjoy it.

Creating a Side Menu Floating Using  CSS only

For this tutorials, We are try to create a Left Side Menu Floating Using CSS only. It means we are going to fixed the side menu while scroll the page. For the long page with contains many paragraph, readers difficult to drag up and click the next articles . so wen need to scrool the side menu it is the easy way to client for select next articles. That why we are going to do this articles.

So here we go Creating a Side Menu Floating Using  CSS only
Demo       |

Step 1 – HTML

Step 2 – CSS

using the css “position fixed & top”, you can make scroll the left side menu.

This is simple code and enjoy it.

How to use Reliance Jio sim on 3g mobile – 100% Working

First you need an activated jio sim then only you can follow the below tricks. Here is the complete process of how to activate jio sim in any mobile. This article we have given every activation problem solution. So after following the below steps you didn’t any jio signal that means trick is working. You need to know few steps to enable jio sim network, Details are mentioned in this article.

Method 1: Mediatek Processor Only

Before start using this method , check your mobile device specs whether it has mediatek chipset or not. Android version 4.4 will be more preferred i.e Kitkat version. Guys please check your android version, if that didn’t work try restarting your mobile 1-2 times by clearing cache. Incase if you have any doubts comment below, I will help you out.

Checking Device for Mediatek or Qualcomn Processor:

  1. First Download CPU Z app from Playstore: Click Here
  2. Install and open this app.
  3. Wait while it retrieves your device information.
  4. Within few seconds you will see all your device information on the screen.
  5. If your device is using Mediatek Chipset then it will reflect with the Logo of Mediatek Chipset on the screen.

Suggestion: You need to activate your sim before going to do this process, if you jio sim isn’t activated then check out the process from this article.

  • First Download & Install MTK Engineering Mode app in your 3G mobile device.
    Download from here
  • This Application will allow you to run an advanced Setup from the Engineering Mode Menu of MTK phones, which is also called SERVICE MODE
    Note This: Use this secret menu very carefully. In case if you don’t know on what you are doing then just stop it or don’t do it!!
  • Open the installed app, or dail your mobile device specific code for Engineering Mode
  • Click on the MTK Settings and Select Preferred Network Option.
  • Now you can Select 4G LTE/WCDMA/GSM as network mode and you can save it and turn it off and on your mobile device
  • Once you done the above steps, Shutdown the device.
  • Insert your Reliance Jio 4G sim in 1st Slot and keep the 2nd Slot empty.
  • Switch on the device and then you will see jio sim network.

If you got other device or above method isn’t working go with this process for Reliance Jio 4G Sim in 3G Phone trick.

Method 2: For Moto G and Moto E Users Tested on 1st Generation.

Latest news as so many people didn’t understood this step so I am here to show you the 100% working video proof for Moto G users, this is tested on 1st and 2nd generation. Just follow the steps carefully if you have any doubts feel free to ask me in the comments.

  • First visit the Dial-pad, and type this number *#*#4636#*#*
  • Then you will see one page with Testing, click on Phone Information
    jio-4g-sim-in-3g-phone
  • Scroll down till you find the Set Preferred Network Type drop down menu, click on
    reliance jio-sim-on-3g
  • Select the LTE/GSM auto (PRL) option and close it

jio-4g-sim-card-in-3g

  • Switch off your mobile put Jio Sim in slot 1 and keep the second slot empty.
  • Switch on now then you will see Jio 4G signal in your mobile

Let me know in the comments if you got any better tricks, or if this didn’t work. I will surely help you out. These are the most working tricks on Reliance Jio 4G sim in 3G phones.

There is a lot of slider over-here. We can make slider using jquery, Css, JavaScript and also using WordPress plugin. If we create slider using jquery and JavaScript we have to include library functions and also script. It may casue our website slow the loading speed. So we can a make slider using css in easy way. Its is reduce website weight.

So here we are going to learn how to create basic slider using only css

Step 1 – HTML

Step 2 – CSS

This is code. have a fun

How To Speed Up Your Website in Easy Way

Recent times everybody have a website or own blog and they knows speed of the website matters a lot in the today’s world. Speed is a main quality to maintain the services and standards.  Every client want to load their page quickly and nobody wants to wait too much time for loading, this is the first and best impression for the website over the client. so it is important to ensure you that in no way the visitors will leave your sight with any reason.  In this post, I am going to show you how effectively you can improve your WordPress site loading speed and also with this you can improve the performance.

Select a Good Hosting provider

Your choice of web hosting provider mainly affects your webpage speed. A good web host is the establishment where your site runs, it’s the first angle be tended to when taking a shot at improving webpage speed (regardless of the fact that not a WordPress powered website).

There are number of hosting companies out there, it is a highly competitive market and there is worth in shopping around. So take a short survey before choosing the host or you can also take the helps from the web experts. If not you can simply check out the reviews before selecting the host for your website.

Using a CDN

A Content Delivery Network or Content Distribution Network (CDN) is a system of distributed servers that deliver the web pages and other web resources to the user those based on his or her geographical location.

A CDN usually copies all the static files such as CSS, JavaScript, and media files etc. in use on your website and delivers them to users as fast as possible.

Caching

Caching is the temporary storage of content such as pages, images and any other files that has used to deliver your page. All this content saved on the visitor’s local drive as a cache, so that whenever they requested again by the same visitors, they delivered much faster. Caching also happens on the server. It is basically a technical area, but there are several popular WordPress plugins that you to configure and manage caching very easily. The best plugins for this purpose are W3 Total Cache and WP Super Cache.

Caching means to the cache memory that you have studied in your school or college time. It is short memory that stores in the every individual system’s memory.

Minify CSS and JavaScript Files

The process of ‘minifying’ your CSS and JavaScript files compresses the original files to the smallest possible sizes, thereby improving the speed at which the browser retrieves the files.

YUI Compressor will come in convenient way if you prefer a manual approach to minifying your site CSS and JavaScript files, or you can go for WP Minify which handles the work with an automated approach. Some caching plugins also offers minimization as a feature of them.

Compressing Images

Aside from the way that large image files contribute extraordinarily to the drowsiness of a WordPress site, they additionally expend transmission capacity as well. Images are a decent contender for improvement.

Using the free WPMU DEV WordPress Smush API, the WP Smush plugin will help you to reduce the size of these images without compromising their quality. I had used this plugin and found it very amazing that how much it reduces the image sizes. Small size of images is very good for increasing the loading speed of your website.

Compressing Site

In basic terms, site compression is similar to transforming your whole site into a ZIP archive. Also, when any of the pages of the site is asked for, a client’s browser acts like WinRAR and unzips the archive and afterward demonstrate the content. Despite the fact that this sounds like an additional work and would back things off, trust me, it doesn’t.

Even though the W3 Total Cache is very popular for the caching, it can also be used in the site compression. You can enable this feature by going to:

Admin page > Performance > Browser Cache > Enable HTTP (gzip) Compression

Optimizing Your Database

WordPress usually auto saves almost everything. This includes the unwanted revisions, track backs, pingbacks, trashed items, unapproved comments, or comments marked as spam, etc.

Just your hard drive become disintegrated, your WordPress database can also suffer from the similar problem. However, you can also use the WP Optimize plugin to optimize your database or WP DB Manager which enables you to optimize your database and as well as schedule dates for the regular database optimization.

Choosing the Right Plugin

Installing a great deal of plugins can include an enormous measure of garbage to your site and site files. There’s no reason for installing or keeping plugins you don’t generally require. Delete the unused plugins or extra plugins from your admin panel.

The best approach is to audit your WordPress Plugins, keeping the ones that are critical to the running of your site and remove the ones that are not. Collecting the plugins more and more is just like collecting the garbage and nothing else. So always try to keep the data or the plugins that you really need or want.

Disabling Trackbacks and Pingbacks

By default, every time another blog mentions you that your site gets be notified. These is called the pingbacks and trackbacks. You can also turn off this feature in WordPress here:

Admin page > settings > discussion and then uncheck the first two checkboxes.

Turning this WordPress feature will not harm your website. So doesn’t worry about this just do it if you want?

Choosing a Good Theme or Theme Framework

While some of the WordPress themes are extremely fast and well coded and on the other hand some are exactly opposite.

When choosing the theme, take a note of the load speed of the theme’s demo page, this will give you an idea of the impact that the theme would be adding to your site load speed.

Optimizing the Structure of Your Homepage

Indicating post portions and minimising the quantity of widgets and posts in a page is an excellent approach to keep your homepage optimised.

Not only doing this will help your site loading speed, it also improves your overall user experience. As I told you above you only got one chance for making a first impression. Try to do it best as much as you can.

Enabling Keep Alive

HTTP Keep Alive is the idea of using the single Transmission Control Protocol (TCP) connection to send and receive multiple HTTP requests, instead of opening a new connection for each request.

Your web host might already have these sorts of setting enabled so check with them first, but if you have a typical hosting account then you can simply copy the line of the code below into your .htaccess file to enable keep alive.

“Header set Connection keep-alive”

Conclusion

Using this concretion u make the website and speed and optimised websites. keep website very light and easy use loading. don’t dump the more widgets use some short code for some functionality

30 Page Preloading Image Style in Css

In every website we have seen an image preloader in their websites. There is a lot of images we can make as a page preloaded image. Here we are going to make 30 preloaded images using css. It’s very simple to make preloader in our website. We used jQuery for hiding the loading images in this website. You can hide loading image when click the website.

The animations are very easy to customize since they made out of just CSS, you will have to change jQuery code so that it fades out the loading screen once the content loads. I will explain to you how the first example works.

Demo       |

Step 1: HTML

This is the loading functionality

and you can add inner pages with your own content

Step 2: CSS
we have to create a fixed div element that can float above and center spot that always will remain centered.

You will notice that i used keyframe twice ‘@-webkit-keyframes’ and ‘@keyframes animate’ first is for webkit based browsers second one is for internet explorer.
Step 3: Jquery

This is just used for on-click to hide loading images

Simple Image Overlay Title Hover Effects in css3

In this tutorial, we are going to create a basic image overlay title hover effects with CSS3. When we will hover the image its need to transition and showing the content or title or icon of the image.

In old days, a small curse over trick make people to click the images and show the description and its tool lot of coding, But nowadays we can make people just hover the images and read the description easy way using css3 transition, we want smooth transition and make it attractive for users. its look more presence for your websites.

Next File Upload With Progress Bar

Step 1

Create a Html code

 

Step 2

Add css3 transition