All the products that you want to sell online are prepared you have already signed up with the Google Ad sense curriculum. Your intelligence is now set to being the next most flourishing online entrepreneur. But is there something besides this that you might have elapsed to arrange? How about your landing pages? Are they all set for your commerce?

Landing pages are basically web pages where the visitors will be directed
to whenever they connect a result in a web search or whenever they click a web ad. For affiliate marketing, landing pages would refer to the web page where you, as a merchant, would want your prospective client to be directed after clicking your ad on your affiliate website. Homepage of their website is used by some online business men as the landing page for their ads. Are these businessmen wrong in their selection? Should you have a separate landing page for your affiliate programs?

If you want to accomplish something more from your online commerce, and also earn a lot of profits, you better create a landing page for your web ads, because it will help you to earn more. The reasons being:

The only way you earn conversion in an associate marketing plan.

There are a range of associate marketing programs nowadays, but most of these programs let the merchant pay them in a pay per click basis. Basically, all you have to do is sign up and submit your ad. The curriculum proprietor would then dispense your ad to a range of affiliates who would then place your ad on their websites.

Now, days surely you would not get any alteration if you have posted an ad on your affiliate's site without an actual landing page for the prospective client to come in. Your ad may be tantalizing enough to hearten people to procure a product, but without the landing page, how will they know how to purchase the product so through land page only you can earn money and increase your prospective clients

Reason no. 2: Other web pages may just not be enough.

Countless community makes the error of making their website's homepage as the landing page for their ads. The same is true for those who make use of other pages like a "contact us". Homepages are regularly planned to serve manifold user and contains a lot of associations to other pages or to other websites. If you want to be successful in an affiliate program, we're sure that you don't want your landing page to cater with others needs.

When you are choosing a landing page, you must always have the client aimed to get into that page in mind. Therefore, your landing page must be appropriate to the keywords and the stuffing you placed on your ad. It is also imperative that the landing page can provoke your caller to take action.

Final Word
So to finally end up I would like to suggest before entering into affiliate marketing program you must have a land page.

Here's Why You Need To Use Landing Pages

All the products that you want to sell online are ready. You have already signed up with the Google Adsense program or with other affiliate marketing programs and you have already prepared the ad you want to post on your affiliate's site. Your mind is now set to being the next most successful online businessman. But is there anything else that you might have forgotten to prepare? Maybe none. But how about your landing pages? Are they all set for your business?

Landing pages are simply web pages where visitors are directed to whenever they click a result in a web search or whenever they click a web ad. For affiliate marketing, landing pages would refer to the web page where you, as a merchant, would want your potential customer to be directed after clicking your ad on your affiliate's website. Landing pages are, at most times, nothing really different from other web pages in a particular website, especially if the said website is an e-commerce site. Some online businessmen would even use the homepage of their websites as the landing page for their ads. Are these businessmen making a big mistake? Or should you follow their method in creating landing pages for their ads?

Well, you can always follow what most online retailers do, directing their potential customers to the homepages of their websites. But if you want to achieve something more from your online business, and if you want to earn a lot of profits, you better create a special landing page for your web ads. Why? Here are a few reasons why you need to use landing pages for your web ads. And take note, it would do you a lot better if you create a great landing page than a so-so one.

Reason no. 1: It is the only way you earn conversions in an affiliate marketing program.

There are a variety of affiliate marketing programs today, but most of these programs let the merchant pay the affiliate in a pay per click basis. Basically, all you have to do is sign up with the program and submit your ad. The program owner would then distribute your ad to various affiliates who would then place your ad on their websites. Whenever your ad is clicked, a visitor would be directed to your landing page and you would have to pay the affiliate for his service.

As a merchant, you earn in an affiliate program through conversions—that is whenever a visitor that is directed to your site actually buys a product on your site. Without these conversions, you actually earn nothing from the program. Also, the more visitors that your affiliates have directed to your site, the larger would your expense be. And the only way that you can recover from these expenses is through conversions.

Now, you sure won't get any conversion if you have posted an ad on your affiliate's site without an actual landing page for the potential customer to be redirected into. It's just like advertising a product without actually having a store to sell your product. Your advertisement may be enticing enough to encourage people to purchase a product, but without the landing page, how will they know how to purchase the product

It is therefore important to have landing pages for your ads because it is the only way for you to earn something in an affiliate program. Without landing pages, all you do is spend money paying your affiliates without actually getting anything in return.

Reason no. 2: Other web pages may just not be enough.

Many people make the mistake of making their website's homepage as the landing page for their ads. The same is true for those who make use of other pages like a "contact us" page or a product page. Homepages are often designed to serve multiple users and contains a lot of links to other pages or to other websites. The same is with the other two pages mentioned. If you want to be successful in an affiliate program, we're sure that you don't want your landing page to cater to the needs of various people, most of which may not be really interested with your product.

When choosing a landing page, you must always have the customer directed into that page in mind. Therefore, your landing page must be relevant to the keywords and the contents you placed on your ad. It is also important that the landing page can induce your visitor to take action—that is to purchase your product or at least provide leads for potential customers.

Final Word

You probably entered into an affiliate marketing program with these things in mind: to save on advertising expenses and to gain more profit. But if you get into an affiliate marketing program without actually having a landing page, you'll end up paying too much without getting anything in return. So if you still don't have a landing page for your ads, you better start creating one now. And don't get us wrong; it isn't enough for you to have just a landing page—it should be a great landing page!

Want to find the best money making programs on the internet? Click on the following Link to find out more!

http://www.thewealthypages.com/wealthyaffiliate.php?key=Y2lkPW1ha2luZzEwMjEmd2E9MEhsckljTjImcj0yMzc5Nw==

In this article I would like to comment how to choose web site page names to achieve best possible visitor's experience and search engine ranking.

Firstly one needs to understand the difference between static and dynamic URLs.

Dynamic Pages

Dynamic website page names are used to send variables to a script file in order to perform a task that usually generates dynamic results. Dynamic URLs always contain question mark that separates file name from sent variables. Example name "do.php?a=1&b=2" would pass variable a=2 and b=2 to "do.php" script file that generates some response.

Such technology is very useful for web designers but it down performs in search engine listings. Search engines prefer static URLs that are less likely to change over time.

Static Pages

To explain static page naming we are going to use two example URLs: "about.htm" and "about.php".

Classic example of a static page name consists of name and extension. Page name extension indicates technology ("htm" says that page uses HTML technology) or a programming language ("php" extension indicates that page was generated using PHP server side scripting) used.

Many consider that pages with extension other than "htm" or "html" are worth more than those with server side scripting language indicators (like PHP, ASP and others).

If you will try to search for "search engine optimization" in Google and look at domain names of first 20 web sites, you will notice that URLs with many extensions are present. This indicates that search engines don't really care about extension as long as the page represents useful information for the visitor.

Friendly URLs

Friendly URLs are static page names with no extension at all. Friendly page names are very useful to the user as they are easy to remember (E.g. help, shop, contact …). Page name extension that refers to scripting language/technology used in the page. Extension-less construction protects page names from becoming obsolete if different web technology is going to be used to generate / present them in the future. Such names can be achieved only using URL rewriting technology.

URL rewriting

Rewrite engine is a special service on the server that modifies URLs before they are processed by scripting language. It is used to convert dynamic page names to static ones:

Dynamic page:

index.php?page=news&item=34

Can be changed to static page:

news/34.html

Or simply

news/34

Rewrite engine is very helpful to maintain static page names for complex database driven websites, where parameters have to be sent to generate results. Dynamic pages are usually not cached by web browsers so by using rewrite technology to generate static pages one increases overall web site performance.

Apache web servers have built in component called "mod_rewrite" which allows setting up rewrite engine by uploading RegExp (Regular Expression) commands to ".htaccess" file. For those who use Windows IIS web servers - Free IconicIsapiRewrite plug-in can be installed to achieve URL rewriting.

Self-Taught PHP/MYSQL: a simple Page Counter

This article is a short introduction to PHP and MySQL using the example of a simple page counter. I will illustrate creating the database in MySQL, connecting to the database from the PHP script, querying the database for information, displaying the information in a web page, and writing the information back to the database. As always, the fastest way to master the process is to jump right in with the code, look it over and use it. We'll make a MySQL database to store the page names and the number of page views, and use PHP to increment and display the count on a web page. First here is all of the code, and then I'll go over it in detail:

This goes into a file called "pagecounter.php"



You'll no doubt have noticed that the script "includes" another, so without further delay here is the "connect.php" file:



The pagecounter.php script needs a database to operate on. Just briefly, here's how to create it.

Creating the database:

Log in to MySQL at your Unix prompt (which might be #):

# mysql –uYourUserName –pYourPassword

At the MySQL prompt enter these commands:

mysql> create database pages;

mysql> use pages;

mysql> create table counter (pagename varchar(60),hits int, stamp timestamp);

mysql> quit;

Naturally you can create the database and table with utilities or web-based interfaces, but doesn't it seem simpler to just enter three commands?

If you just wanted some code for a simple counter, this is all you need. Put this text into an SHTML web page, or this text into a php web page, copy the above two files into the same directory, and you're done.

The first thing you'll have noticed about the scripts are the dollar signs ($). All variables in PHP scripts start with a $. Anything starting with a $ is a variable. Instructions - statements and functions – end with a semicolon (;). starts the script and it ends with . When your script is hosed, look at these first.

Details about the pagecounter.php script

Line 1

include_once "connect.php";

The first line in the script is just what it appears to be. It includes whatever is in the file "connect.php". The "_once" means that it's only included once, even if you had the line twice in the script. The reason I've separated it out is that it's all the connection stuff to the database. All the php/Mysql scripts will need it, it's always the same, so you can just put it by itself and use the include function.

Line 2

$pagename=$_SERVER["REQUEST_URI"];

The next line creates a variable called $pagename and sets the value to a special pre-defined variable $_SERVER["REQUEST_URI"]. The brackets [ ] are used by arrays in php. $_SERVER is a pre-defined array of headers and paths. This particular one is the name of the file that accesses the script, i.e., the name of the page that the counter is in.

Line 3

$result=mysql_query("Select * from counter where pagename='$pagename'");

All the database work is done with mysql_query, which sends an SQL command string to MySQL, after you've already logged in and connected to the database with the connect.php script. "Select * from counter where pagename='$pagename'" replaces $pagename with its value. But there's a quirk here – the single quotes have to be inside the double quotes. If I had it the other way around, with the single quotes outside, the query would be for the text "$pagename" instead of the value. $result is the result set. It can be any name but in tutorial scripts it's always $result, so it is here.

Line 4

if (mysql_num_rows($result)==0){

The fourth line is the php version of "if-then". It simply checks whether there are any results from the query in line 3. The syntax is representative of php coding in general so it's a good place to start. The curly brackets { } are used to group instructions. The curved brackets ( ) are used for the "if" condition. Everything inside the curly brackets will be executed if the "if" condition is true. PHP uses double equals == for comparison; if I had used only a single equal sign it would try to set mysql_num_rows to 0, which wouldn't work for our purposes. A missing equal sign is the second thing to look for when your script is hosed and it's not missing a $ or ;.

Line 5

mysql_query("insert into counter (pagename,hits) values ('$pagename','0')"); }

Inside the brackets, which only happens when line 4 finds no records of the page we searched for, the instruction creates a new record with the page's name and zero for the hit count. Although mysql_query is a function, it doesn't necessarily need a variable $result= in front of it. That's optional in PHP if you don't care about the return value.

The closing curly bracket } from the "if" statement comes here, since we only needed one statement to create our record.

Line 6

$count=mysql_result($result, 0, "hits");

mysql_result fetches the actual data from the result set. You specify the result set (from mysql_query), the row number (0), and the column name ("hits"). This is a little confusing at first since to get here took four steps: 1) log into MySQL, 2) connect to the database, 3) select data from the table, and 4) fetch a particular piece of the data. Putting the repetitive first two steps into an include file where you can more or less forget about them makes it more intuitive: use SQL to select data with mysql_query, and then retrieve data with mysql_result.

Line 7

$count=$count + 1;

Just adds one to the count variable. This is the count of the page views of the page requesting the script.

Line 8

mysql_query ("update counter set hits=$count where pagename='$pagename'");

As with Line 5 we send an SQL command directly to MySQL. This one updates the count for just the page matching the variable $pagename.

Line 9

echo "Page Count: ".$count;

The echo function writes text to a web page, in this case the text "Page Count: " followed by whatever value is in $count. The period in between is the PHP concatenation operator: it simply adds the two strings together. Echo sees it as one string and outputs it.

Details about the connect.php script:

All this script does is connect to the MySQL server and select the Database.

Line 1

$host="localhost";$user="YourUserName";$password="YourPassword";$dbase="pages";

These are the inputs for the connect and select_db functions. Naturally you can insert the values into the functions on line 3 and 4 and eliminate this line, but it's simpler to change later (when you re-use this code for example) if you just list them out at the top. The host and dbase won't need to be changed in this example. The user and password are specific to your MySQL setup. As shown here you can put as many statements on one line as you want; PHP doesn't care.

Line 2

// change the user and password to your MySQL user and password

The double slashes // denote a comment line that is ignored by php. Each comment line needs the slashes.

Line 3

$connect = mysql_connect($host,$user,$password);

You log into your MySQL with the mysql_connect command. You would change the host from "localhost" to the database server if you were accessing MySQL from another server, provided you've set up the access rights for the specified user/

Line 4

mysql_select_db($dbase,$connect);

Since we can have multiple databases in the MySQL server, we have to select one before sending SQL statements to it. As I mentioned earlier, this part is repetitive, and once it's in this file and working you can forget about it.

In this tutorial we've examined a simple but functional web page counter implemented with PHP/MySQL. We examined the basic syntax of PHP statements and variables, the PHP "include" function and "if" control function, and the fundamental PHP MySQL functions mysql_connect, mysql_select_db, mysql_query, mysql_num_rows, and mysql_result. For further reference the reader should bookmark http://dev.mysql.com/doc/refman/6.0/en/index.html and http://us.php.net/manual/en/funcref.php .

Bill Hamilton is a former Database Administrator for United News and Media, and VNU inc. He currently operates several php/mysql driven websites including Gemstones and Beads

Recent Posts