Just Check out my this post. Its all about dynamically generation of select option. when we select the particular country it should generate automatically the new select option of the states of the particular country.

Create first connectivity.php file. following is the coding for connectivity.

I will show you how to add data into select option by fetching data from database. its quite simple. select option is mostly used for registrations & other major activities & forms. select option is useful.

WordPress is one of the most popular content management system (CMS) in use and around 17% of the websites that are present on the internet these days are powered by this CMS. With the growing use of WordPress its security and safety has also become one of the major issues to deal with. In the year 2011 more than 144,000 word press sites were hacked and this number reached to 170,000 in the year 2012.

The website owners and the core developers of WordPress are responsible for the security of the system. In order to keep their security tight, the WordPress site owners should keep various points into consideration like updating the WordPress to the latest version that is released, keeping back of data, do not display the version of WordPress on blog, reporting bugs to WordPress security, not installing the free themes, using strong passwords for all the entry points, using only trusted plug-in and others.

Some of the most common ways that result in the site being hacked are having virus on the computer, keeping easy to crack password, approving comments that are non relevant, Contact US form going to the script in the site for processing and website displaying only the plain HTML+ JavaScript pages. Thus one should take care of these points to avoid getting their site hacked.

A function is a block of statements that can be used repeatedly in a program.

A function will not execute immediately when a page loads.

A function will be executed by a call to the function.

A user defined function declaration starts with the word “function”:

we create a function named “premal()”. The opening curly brace ( { ) indicates the beginning of the function code and the closing curly brace ( } ) indicates the end of the function. The function outputs “premal katigar!”. To call the function, just write its name:

So you’ve gone though some of the tutorial, and you can make some nifty things in PHP. But the problem is, they all look like plain text. How do you jazz them up?

Formatting with PHP actually isn’t done with PHP, it’s done with HTML. You can do this in two ways. You can add the HTML inside of the PHP… or you can add the PHP inside of the HTML. Either way, make sure your file is saved as a .php or another file type that is allowed to execute PHP on your server.

A FOR loop continues to process a block of code until a statement becomes false, and everything is defined in a single line, making it somewhat different to a WHILE loop. Read about FOR Loops

WHILE Loops:

Basically what a WHILE loop does is evaluate a statement as true or false. If it is true it executes some code and then alters the original statement and starts all over again by re-evaluating it. It continues to loop through the code like this until the statement becomes false