URL Rewriting, SEO friendly URL with htaccess mod_rewrite

Most of the peoples know that why do we using .htaccess file and what is the importance of this .htaccess file for your website, Here in this post you get know about the importance on .htaccess file for your website and some helpful .htaccess tips for your website.

So why we use .htaccess file?

If we are looking to the SEO(Search Engine Optimization) side for your website then .htaccess file is one of the most important factor for your website, lets take an example of URL Rewriting. Why do we need the URL Rewriting for our website? It’s simple; If you noticed the google search results, take a look on the image.

Read More

Convert CHARACTER SET in mysql

To convert the database into different character set is easy with a single line command, if you want to convert only the database character set just follow the command:

ALTER DATABASE db_name DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;

 
Read More

Simple and attractive javascript plotting chart

if we talking about the data representation, like total sale or total visits on day-by-day etc. then it’s a great idea to showing the data into plotting chart. When i have this idea to represent the data in plotting chart then i got a JavaScript plug-in on flotcharts.org, one to the simplest and attractive javascript plotting chart plug-in. Below you get that how to start with this plugin in a simplest way, means just the starting of the plotting chart plug-in.

First make your document ready like usually we are doing before running any jquery stuff. After that just call the plotting chart plugin’s function ‘$.plot()’ and start to input the data that you want to display on your chart. First you have to mention, in which element you want to show your chart. As you see in the HTML section, i have created a div with the class name ‘graph’. And in the jquery section just call the call or whatever you element you want.

Read More

Random password generator with php

In this post we are just creating a PHP function that provide us a random password string. This Password string is the combination of small and capital alphabets and digits, that help us to generate random password string. To generate the random password we are using here `mt_rand()` a PHP function. We can also use `rand()`, because both the functions provide the random strings but `mt_rand()` providing four time better random string then `rand()` function.

Read More

Get element on event with jquery

What If we apply an event on multiple element? Yes in this post we are talking about to get the element on particular event. Let’s say we have more then one element and on these elements we want the click event. But now how do we detect the clicked element. In the given example, i just talking two input fields, with different name and id. And apply the click event on both elements.

Here is the HTML Example:

Read More

Create tab using jquery and css

Creating tab is very simple with the use of CSS and JQuery. As We know that JQuery is the most popular JavaScript Library. In this Post you can find all the stuff that you need to creating tab. Well if we talking about why we using tab, because with the use of tab we can provide more data or introduce more stuff about the website and divide that stuff in separate tabs. Each Tab contain the relative data or HTML Stuff.

AS you see in the below HTML section, that i have used li markup, which contain the tabs, Tab 1 and Tab 2. And below div with i also set two div which contain the separate tab data. Now you have to play with the CSS that gives the look of tabs to this HTML section. And you will get the CSS, just below the HTML Section.

Read More