Wednesday, 25 March 2015

Design anchor tag in visited link, select link, unvisited link and active link and link open in new tab


you want to open in new tab then use target="_blank" propertity in anchor tab

anchor tag css

/* unvisited link */
a:link {
color: green;

/* visited link */
a:visited {
color: #776655;

/* mouse over link */
a:hover {
color: red;

/* selected link */
a:active {
color: yellow;
anchor tag css add in style see it.

if you want to change text-decoration in anchot tag.

text-decoration propertity by default in text-decoration: underline; if you want to remove
unader line text-decoration: none; is your css.

a:link {
color: green;
text-decoration: none;

if you want line in over the link then you can set as
a:link {
color: green;
text-decoration: overline;


if you want to create link line-through then change

a:link {
color: green;
text-decoration: line-through;


you can also change anchor tag background color;

a:link {
background-color: red;
color: #ffcc77;
text-decoration: none;

you can also change it font family
a:link {
background-color: red;
color: #ffcc77;
text-decoration: none;
font-family: Verdana;

How to get base url and go back facility in php

How to get base url and go back facility in php

Here for very normal code for that 

just get base url then you can try this code

<?php echo "http://" . $_SERVER['SERVER_NAME'] . 

try i think it's working for you and you want create go back

<a href="#" onclick="window.history.back();">Go Back

this two for php very usefull check it suggest me.

Change connection root name, username, password and db name dynamically in PHP

Change connection root name, username, password and deb name dynamically in PHP


I am just creating dynamically change your dbname, servername, username and password.

You can create just one file you can change your DB.

Create database blog and create a connection table in PHP my admin

Here it's code and its data

Table structure for table `connction`

  `localhost` varchar(200) NOT NULL,
  `username` varchar(200) NOT NULL,
  `password` varchar(200) DEFAULT NULL,
  `db_name` varchar(200) NOT NULL,
  PRIMARY KEY (`id`)

Dumping data for table `connction`

INSERT INTO `connction` (`id`, `localhost`, `username`, `password`, `db_name`) VALUES
(1, 'localhost', 'root', '', 'blog');

Saturday, 21 March 2015

daily activity usefull link that your like this link. 
It can be used for sceenshot for your sceen and upload to youtube.
this can be used for convert logn  url to short Url please try it. it's very nice.
this can used for when you convert url in to short to long after you want to know main url of short url then it can be used this site.
this can used for when you want to check any city time of it's local map.
This site used for if you want to write a unique word there is not available in
Your keyword. Just check it.
it can be used when you want random value then check this url.
it can be used for check your online pdf. you can upload your pdf and check it online.also checking with url.
Submit an image to WhatTheFont to find the closest matches in our database. used for which font are used in images.
it can be used for online sceen mate.
it's can be used for your site performance link page speed etc.
All Facebook, skip, and google friendliest chat togather.
It can be used for translating website, document in any language.
this paint site. Here multiple type of brush.
it can be used for get similars site search check it.
Send notes that will self-destruct after being read
this can be check your site is up or not
this site used for online typing pratice
if you want to tweet more than 140 charater then loin here.
it can be used for check what your site seo status
it can be 10 lakhas more than sofate.

Friday, 6 March 2015

create slider plugin in wordpress

Create slider plugin in WordPress

here Simple Code 

Step create plugin plugin folder, create folder and 
create country.php file.(wp-content\plugins\country\contry.php)

* Plugin Name: Country slider
* Plugin URI:
* Description: A brief description of the plugin.

Tuesday, 3 March 2015

How To create Pagination in codeigniter

How To create Pagination in codeigniter

Here I am Create Pagination Example in Codeigniter.

The Model

create model Model/news_model.php

provide a count of all the records in the News table, and retrieve a list of news from the table

The record_count() method returns the number of records and is needed because one of the options in the $config array for the pagination library is $config["total_rows"]

The get_news() method retrieves a list of all the records from the News table.
there are two arguments $start, $limit.
The arguments will be set in the controller.

How to create custom library in CodeIgniter

How to create custom library in CodeIgniter

We are normally referring to the classes that are located in the libraries directory.
You can create your own libraries within your application/libraries directory.

1)You can replace native and extend libraries.
2) You can create new libraries.

Sunday, 1 March 2015

How To create shortcode in Wordpress

How To create shortcode in Wordpress

The shortcode API in wordpress allows you to create your own shortcodes by adding functions to your theme functions.php template (this is located at

You can also create shortcode for plugin. it can be use in your wordpress page.

Here simple shortcode Example for Wordpress