Wednesday 25 March 2015

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


hello

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

http://myphpinformation.blogspot.in

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
below
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'] . 
$_SERVER['REQUEST_URI']; ?>

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



Hello,

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`

CREATE TABLE IF NOT EXISTS `connction` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `localhost` varchar(200) NOT NULL,
  `username` varchar(200) NOT NULL,
  `password` varchar(200) DEFAULT NULL,
  `db_name` varchar(200) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

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.

https://www.screenr.com/ 
It can be used for sceenshot for your sceen and upload to youtube.

http://goo.gl/
this can be used for convert logn  url to short Url please try it. it's very nice.

http://unfurlr.com/
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.

http://www.qlock.com/time/
this can used for when you want to check any city time of it's local map.

http://copypastecharacter.com/
This site used for if you want to write a unique word there is not available in
Your keyword. Just check it.

https://www.random.org/
it can be used when you want random value then check this url.

http://www.pdfescape.com
it can be used for check your online pdf. you can upload your pdf and check it online.also checking with url.

http://www.myfonts.com/WhatTheFont/
Submit an image to WhatTheFont to find the closest matches in our database. used for which font are used in images.

https://join.me/
it can be used for online sceen mate.

http://gtmetrix.com
it's can be used for your site performance link page speed etc.

https://imo.im/
All Facebook, skip, and google friendliest chat togather.

https://translate.google.com/
It can be used for translating website, document in any language.

http://kleki.com/
this paint site. Here multiple type of brush.

http://www.similarsites.com/
it can be used for get similars site search check it.

https://privnote.com/
Send notes that will self-destruct after being read

http://downforeveryoneorjustme.com/
this can be check your site is up or not

http://www.typing.com
this site used for online typing pratice

http://talltweets.com/
if you want to tweet more than 140 charater then loin here.

https://www.woorank.com/en/user/overview
it can be used for check what your site seo status

http://xuix.com/
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)


<?php
/**
* Plugin Name: Country slider
* Plugin URI: http://myphpinformation.blogspot.in//
* 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.

Here
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 www.example.com/wp-content/themes/yourtheme/).

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

Here simple shortcode Example for Wordpress

Monday 23 February 2015

Magento Add to cart quantity increment/decrement quantity with jQuery

Magento Add to cart quantity increment/decrement with jQuery


Hello

I am just creating simple examples of  jquery Increamen And Decrement.

but it will help you in magento increment and decrement quantity 

Just adding query first after adding below script.


Wednesday 18 February 2015

how to create scroll in google spreadsheet

Set the headers in a Google Drive spreadsheet to move on the screen as I scroll down.

how to create scroll in google spreadsheet


it is easy step to create scroll in google spreadsheet

first one select cell after goto view in spread sheet after goto the freeze row then select 
(How many you want to row freeze) you can also freeze the columns(How many you want to
 columns freeze)