<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>A variety of Tutorials</title>
	<link>http://www.tutorials2u.com</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Thu, 28 Feb 2008 21:06:25 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
	<language>en</language>
			<item>
		<title>Importance of Using ALT Text and Heading Tags</title>
		<link>http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/</link>
		<comments>http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/#comments</comments>
		<pubDate>Thu, 28 Feb 2008 21:06:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[HTML]]></category>

		<category><![CDATA[ALT Text]]></category>

		<category><![CDATA[Heading Tags]]></category>

		<guid isPermaLink="false">http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/</guid>
		<description><![CDATA[If you have a website that you want ranked with higher rankings, there are several things you can do on your own to increase rankings. One thing you can do is double check the usage of alt text and heading tags on your sight. I&#8217;ve noticed by not having heading tags and leaving the ALT [...]]]></description>
			<content:encoded><![CDATA[<p>If you have a website that you want ranked with higher rankings, there are several things you can do on your own to increase rankings. One thing you can do is double check the usage of alt text and heading tags on your sight. I&#8217;ve noticed by not having heading tags and leaving the ALT text blank, search engines like Google will rank you with a lower score. This has happened to some of my pages, so I am speaking from experience.<br />
Recently I did a revamp on some of the pages on my site and noticed that my page ranking had dropped. I couldn&#8217;t figure it out until finally I caught a clue, and compared my old pages with the new ones. The major difference with the pages I compared was the new page did not have heading tags, and my alt text was not relevant to the page. Those two little factors dropped my page rank by up to two points, incredible! You must be very very careful when updating your pages so this problem does not happen to you.</p>
<p>Below are some tips and ideas based on what Google looks for with its robots to help when you upgrade and or optimize your web pages.</p>
<p>First off, where does Google pull text from your page that is considered relevant? I have read from others and noticed that Google gets it&#8217;s text from a combination of places such as:</p>
<p>1. Keyword phrase found in body text 2. META description tag 3. ALT text found on the page, most particularly the first Alt text. 4. Heading tags, once again most particularly the first Heading tag. 5. Additional heading tags on the page. 6. Additional body text found on the page. 7. Additional ALT text on the page. 8. Navigation bars 9. General body text 10. Copyright information (usually towards bottom of page).</p>
<p>Now that you know what Google is looking for, you need to know what to put into these areas. As it stands, I have found out the hard way that it is a must for you to use alt text and heading tags.</p>
<p>The text you need to insert into these areas would be the most relevant search terms that surfers are typing into the search engines that relate to that particular page. It&#8217;s that easy! Not really but if you have not set your pages in this manner or if you are missing any one of the combinations you might be loosing points from Google and other search engines page ranking system. There are plenty of tools on the market that can help with page optimization. One of my favorites is Web Position Gold. Web Position Gold will generate pages that are automatically optimized. The program also has a tool called Page Critic which will analyze your existing pages and offer suggestions for better optimization. You can try the program for free at http://www.nadmedia.net/store. If you have any questions about page optimization just give me an email, or read some of my other articles on page optimization at nadmedia.net. Happy page building!</p>
<h1>About the Author</h1>
<p>Rob Wiley has spent the last 14 years serving the media industry in fields involving graphic design, marketing, website design and development. His experience has been shared with numerous businesses that have profited from his advice and skills.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a title="Click me to see the sites." href="#" onclick="$$('div.d37').each( function(e) { e.visualEffect('slide_down',{duration:2.5}) }); return false;"><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d37" style="overflow:hidden">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://blinkbits.com/bookmarklets/save.php?v=1&amp;source_url=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;title=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;BlinkBits"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/blinkbits.png" title="Add to&nbsp;BlinkBits" alt="Add to&nbsp;BlinkBits" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://blinklist.com/index.php?Action=Blink/addblink.php&amp;Name=Importance+of+Using+ALT+Text+and+Heading+Tags&amp;Description=Importance+of+Using+ALT+Text+and+Heading+Tags&amp;Url=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/" title="Add to&nbsp;BlinkList"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/blinklist.png" title="Add to&nbsp;BlinkList" alt="Add to&nbsp;BlinkList" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.bloglines.com/sub/http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/" title="Add to&nbsp;Bloglines"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/bloglines.png" title="Add to&nbsp;Bloglines" alt="Add to&nbsp;Bloglines" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;title=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;Blogmarks"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/bmarks.png" title="Add to&nbsp;Blogmarks" alt="Add to&nbsp;Blogmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.blogmemes.net/post.php?url=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;title=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;Blogmemes"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/blogmemes.png" title="Add to&nbsp;Blogmemes" alt="Add to&nbsp;Blogmemes" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://bluedot.us/Authoring.aspx?u=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;t=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;Blue Dot"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/bluedot.png" title="Add to&nbsp;Blue Dot" alt="Add to&nbsp;Blue Dot" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.bumpzee.com/bump.php?u=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/" title="Add to&nbsp;BUMPzee"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/bumpzee.png" title="Add to&nbsp;BUMPzee" alt="Add to&nbsp;BUMPzee" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://co.mments.com/track?url=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;title=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;Co.mments"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/comments.png" title="Add to&nbsp;Co.mments" alt="Add to&nbsp;Co.mments" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.connotea.org/addpopup?continue=confirm&amp;uri=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;title=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;Connotea"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/connotea.png" title="Add to&nbsp;Connotea" alt="Add to&nbsp;Connotea" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;title=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://de.lirio.us/login/?action=add&amp;address=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;title=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;De.lirio.us"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/delirious.png" title="Add to&nbsp;De.lirio.us" alt="Add to&nbsp;De.lirio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.diigo.com/post?url=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;title=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;Diigo"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/diigo.png" title="Add to&nbsp;Diigo" alt="Add to&nbsp;Diigo" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;title=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;digg"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.dotnetkicks.com/kick/?url=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;title=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;DotNetKicks"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/dotnetkicks.png" title="Add to&nbsp;DotNetKicks" alt="Add to&nbsp;DotNetKicks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.dzone.com/links/add.html?description=Importance+of+Using+ALT+Text+and+Heading+Tags&amp;url=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;title=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;DZone"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/dzone.png" title="Add to&nbsp;DZone" alt="Add to&nbsp;DZone" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://cgi.fark.com/cgi/fark/edit.pl?new_url=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;new_comment=Importance+of+Using+ALT+Text+and+Heading+Tags&amp;new_comment=Importance+of+Using+ALT+Text+and+Heading+Tags&amp;linktype=Misc" title="Add to&nbsp;Fark"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/fark.png" title="Add to&nbsp;Fark" alt="Add to&nbsp;Fark" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://feedmelinks.com/categorize?from=toolbar&amp;op=submit&amp;name=Importance+of+Using+ALT+Text+and+Heading+Tags&amp;url=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;version=0.7" title="Add to&nbsp;Feed Me Links"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/feedmelinks.png" title="Add to&nbsp;Feed Me Links" alt="Add to&nbsp;Feed Me Links" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://extension.fleck.com/?v=b.0.804&amp;url=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/" title="Add to&nbsp;Fleck"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/fleck.png" title="Add to&nbsp;Fleck" alt="Add to&nbsp;Fleck" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://FriendSite.com/users/bookmark/?u=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;t=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;FriendSite"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/friendsite.png" title="Add to&nbsp;FriendSite" alt="Add to&nbsp;FriendSite" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://furl.net/storeIt.jsp?t=Importance+of+Using+ALT+Text+and+Heading+Tags&amp;u=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/" title="Add to&nbsp;FURL"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/furl.png" title="Add to&nbsp;FURL" alt="Add to&nbsp;FURL" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;title=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.kaboodle.com/za/selectpage?p_pop=false&amp;pa=url&amp;u=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/" title="Add to&nbsp;Kaboodle"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/kaboodle.png" title="Add to&nbsp;Kaboodle" alt="Add to&nbsp;Kaboodle" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.linkagogo.com/go/AddNoPopup?url=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;title=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;LinkaGoGo"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/linkagogo.png" title="Add to&nbsp;LinkaGoGo" alt="Add to&nbsp;LinkaGoGo" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.maple.nu/submit.php?url=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/" title="Add to&nbsp;Maple"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/maple.png" title="Add to&nbsp;Maple" alt="Add to&nbsp;Maple" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://ma.gnolia.com/bookmarklet/add?url=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;title=Importance+of+Using+ALT+Text+and+Heading+Tags&amp;description=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;Ma.gnolia"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/magnolia.png" title="Add to&nbsp;Ma.gnolia" alt="Add to&nbsp;Ma.gnolia" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.mister-wong.com/index.php?action=addurl&amp;bm_url=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;bm_description=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;Mister Wong"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/misterwong.png" title="Add to&nbsp;Mister Wong" alt="Add to&nbsp;Mister Wong" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;T=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;Netscape"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://netvouz.com/action/submitBookmark?url=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;title=Importance+of+Using+ALT+Text+and+Heading+Tags&amp;popup=no" title="Add to&nbsp;Netvouz"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/netvouz.png" title="Add to&nbsp;Netvouz" alt="Add to&nbsp;Netvouz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.newsvine.com/_wine/save?u=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;h=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;Newsvine"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/newsvine.png" title="Add to&nbsp;Newsvine" alt="Add to&nbsp;Newsvine" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.plugim.com/submit?url=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;title=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;PlugIM"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/plugim.png" title="Add to&nbsp;PlugIM" alt="Add to&nbsp;PlugIM" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://popcurrent.com/submit?url=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;title=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;PopCurrent"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/popcurrent.png" title="Add to&nbsp;PopCurrent" alt="Add to&nbsp;PopCurrent" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.rawsugar.com/tagger/?turl=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;tttl=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;RawSugar"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/rawsugar.png" title="Add to&nbsp;RawSugar" alt="Add to&nbsp;RawSugar" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;title=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.rojo.com/add-subscription/?resource=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/" title="Add to&nbsp;Rojo"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/rojo.png" title="Add to&nbsp;Rojo" alt="Add to&nbsp;Rojo" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.simpy.com/simpy/LinkAdd.do?href=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;title=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;Simpy"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/simpy.png" title="Add to&nbsp;Simpy" alt="Add to&nbsp;Simpy" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.sk-rt.com/submit.php?url=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/" title="Add to&nbsp;Sk*rt"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/skirt.png" title="Add to&nbsp;Sk*rt" alt="Add to&nbsp;Sk*rt" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://slashdot.org/bookmark.pl?url=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;title=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;Slashdot"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/slashdot.png" title="Add to&nbsp;Slashdot" alt="Add to&nbsp;Slashdot" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="hhtp://www.stumbleupon.com/submit.php?url=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;title=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.shoutwire.com/?p=submit&amp;link=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/" title="Add to&nbsp;Shoutwire"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/shoutwire.png" title="Add to&nbsp;Shoutwire" alt="Add to&nbsp;Shoutwire" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.squidoo.com/lensmaster/bookmark?http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/" title="Add to&nbsp;Squidoo"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/squidoo.png" title="Add to&nbsp;Squidoo" alt="Add to&nbsp;Squidoo" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.sphere.com/search?q=sphereit:http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;title=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;SphereIt"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/sphereit.png" title="Add to&nbsp;SphereIt" alt="Add to&nbsp;SphereIt" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.spurl.net/spurl.php?url=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;title=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;Spurl"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/spurl.png" title="Add to&nbsp;Spurl" alt="Add to&nbsp;Spurl" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://taggly.com/bookmarks.php/pass?action=add&amp;address=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/" title="Add to&nbsp;Taggly"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/taggly.png" title="Add to&nbsp;Taggly" alt="Add to&nbsp;Taggly" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://tailrank.com/share/?title=Importance+of+Using+ALT+Text+and+Heading+Tags&amp;link_href=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/" title="Add to&nbsp;Tailrank"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/tailrank.png" title="Add to&nbsp;Tailrank" alt="Add to&nbsp;Tailrank" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.thisnext.com/pick/new/submit/sociable/?url=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;name=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;ThisNext"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/thisnext.png" title="Add to&nbsp;ThisNext" alt="Add to&nbsp;ThisNext" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://webride.org/discuss/split.php?uri=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;title=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;Webride"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/webride.png" title="Add to&nbsp;Webride" alt="Add to&nbsp;Webride" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.wists.com/t.php?c=null&amp;r=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;u=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;title={text}" title="Add to&nbsp;Wists"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/wists.png" title="Add to&nbsp;Wists" alt="Add to&nbsp;Wists" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/&amp;t=Importance+of+Using+ALT+Text+and+Heading+Tags" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
<a style="font-size:90%;text-align: right; " title="Click me to hide the sites." href="#" onclick="$$('div.d37').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); return false;">Hide Sites</a>
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.tutorials2u.com/programming/html/importance-of-using-alt-text-and-heading-tags/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Site Personalization With PHP</title>
		<link>http://www.tutorials2u.com/programming/php/site-personalization-with-php/</link>
		<comments>http://www.tutorials2u.com/programming/php/site-personalization-with-php/#comments</comments>
		<pubDate>Thu, 28 Feb 2008 21:03:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Site Personalization With PHP]]></category>

		<guid isPermaLink="false">http://www.tutorials2u.com/programming/php/site-personalization-with-php/</guid>
		<description><![CDATA[Your HTML files can work as PHP scripts.
Take any HTML file you have and rename it to a PHP extension. (So for example, if your HTML file is named sales.html, rename it to sales.php).
Put sales.php on your web server and run it in your browser. You get the exact same result as you did with [...]]]></description>
			<content:encoded><![CDATA[<p>Your HTML files can work as PHP scripts.</p>
<p>Take any HTML file you have and rename it to a PHP extension. (So for example, if your HTML file is named sales.html, rename it to sales.php).</p>
<p>Put sales.php on your web server and run it in your browser. You get the exact same result as you did with the HTML page. Now, for the good part.</p>
<p>Say you wanted to personalize one of your sales pages. Let&#8217;s call that sales.php. Now, if you had a newsletter or wanted to give this &#8220;personalized link&#8221; to someone, your visitor&#8217;s name could be added on-the-fly to your sales page.</p>
<p>Your link should look something like this:</p>
<p>http://www.your.host/sales.php?firstname=Big&amp;lastname=Bird</p>
<p>Let&#8217;s try it out:</p>
<p>http://www.jumpx.com utorials/1/example.php?f=Myfirstname</p>
<p>Click that link and your name should be near the top of the page.)</p>
<p>In this example, yourdomain.com represents your domain name and sales.php your HTML file turned PHP script. This would be the link you could give Big Bird when you ask him to visit your sales page.</p>
<p>Now, edit sales.php and find where you want Big Bird&#8217;s name to appear. The first and last names are given to the script separately so you could have anything from &#8220;Hi Big Bird!&#8221; to &#8220;Dear Mr. Bird&#8230;&#8221; For simplicity let&#8217;s just stick with showing both the first and last names for now.</p>
<p>Insert this anywhere into your &#8220;script&#8221;:</p>
<p>Now try that sample link I gave you earlier on that sales page of yours. You should see the phrase &#8220;Big Bird&#8221; anywhere on your page.</p>
<p>Remember that you can stick this in anywhere on the page. So for example if you wanted it to say &#8220;Dear Big Bird,&#8221; you would just do this (with the comma at the end):</p>
<p>Dear ,</p>
<p>If you wanted to show only the first name, use<br />
instead. The same applies to the last name.</p>
<p>If you want to go ahead and shorten the URL even further, you can even use the letters &#8220;F&#8221; and &#8220;L&#8221; instead of firstname and lastname.</p>
<p>For example, try this in your page:</p>
<p>And then use this URL (substituting with your correct URL, of course):</p>
<p>http://www.your.host/sales.php?f=Oscar&amp;l=Grouch</p>
<p>The result is the same. I think we want our URLs to look a little better, though.</p>
<p>The format I used in that above example was:</p>
<p>http://www.your.host/sales.php?f=Big&amp;l=Bird</p>
<p>Now, the problem with this is that this link looks really ugly. Another setback with this format is that anything to the right of the &#8220;?&#8221; won&#8217;t be indexed by some of the smaller search engines.</p>
<p>Here&#8217;s a way to change this:</p>
<p>http://www.your.host/sales.php?f=Firstname&amp;l=Lastname</p>
<p>To this:</p>
<p>http://www.your.host/sales.php/f=Firstname/l=Lastname</p>
<p>It&#8217;s really easy. Just change your script to this:</p>
<p>$myvars = explode(&#8221;/&#8221;,$REQUEST_URI);<br />
for ($i=0;$i<count><br />
$holder = explode(&#8221;=&#8221;,$myvars[$i]);<br />
${$holder[0]} = $holder[1];<br />
}</p>
<p>echo &#8220;$f $l&#8221;;</p>
<p>?&gt;</p>
<p>And in just a few lines of code, your personalized PHP script&#8217;s URL just looked a whole lot better.</p>
<p>I won&#8217;t bore you with the details of what that script does, but it basically chops up the URL you gave it and picks out the pieces it wants using array exploding and variable-variables.</p>
<p>This snippet can also be used on almost any PHP script as well. (I used this method when I coded Brian Garvin&#8217;s Lightning Track ad tracker&#8230; if you ever see a URL anywhere with &#8220;go.php/etc&#8221; in it, that&#8217;s my script.)</p>
<p>Hopefully we all learned something today. This mini-tutorial was brought to you by the letters &#8220;P-H-P.&#8221;<br />
</count></p>
<h1>About the Author</h1>
<p>Article by Robert Plank</p>
<p>Subscribe to the free opt-in newsletter &#8220;JumpX E-Magazine&#8221; for lots more PHP help.</p>
<p>http://www.jumpx.com/newsletter</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a title="Click me to see the sites." href="#" onclick="$$('div.d36').each( function(e) { e.visualEffect('slide_down',{duration:2.5}) }); return false;"><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d36" style="overflow:hidden">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://blinkbits.com/bookmarklets/save.php?v=1&amp;source_url=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;title=Site+Personalization+With+PHP" title="Add to&nbsp;BlinkBits"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/blinkbits.png" title="Add to&nbsp;BlinkBits" alt="Add to&nbsp;BlinkBits" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://blinklist.com/index.php?Action=Blink/addblink.php&amp;Name=Site+Personalization+With+PHP&amp;Description=Site+Personalization+With+PHP&amp;Url=http://www.tutorials2u.com/programming/php/site-personalization-with-php/" title="Add to&nbsp;BlinkList"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/blinklist.png" title="Add to&nbsp;BlinkList" alt="Add to&nbsp;BlinkList" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.bloglines.com/sub/http://www.tutorials2u.com/programming/php/site-personalization-with-php/" title="Add to&nbsp;Bloglines"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/bloglines.png" title="Add to&nbsp;Bloglines" alt="Add to&nbsp;Bloglines" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;title=Site+Personalization+With+PHP" title="Add to&nbsp;Blogmarks"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/bmarks.png" title="Add to&nbsp;Blogmarks" alt="Add to&nbsp;Blogmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.blogmemes.net/post.php?url=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;title=Site+Personalization+With+PHP" title="Add to&nbsp;Blogmemes"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/blogmemes.png" title="Add to&nbsp;Blogmemes" alt="Add to&nbsp;Blogmemes" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://bluedot.us/Authoring.aspx?u=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;t=Site+Personalization+With+PHP" title="Add to&nbsp;Blue Dot"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/bluedot.png" title="Add to&nbsp;Blue Dot" alt="Add to&nbsp;Blue Dot" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.bumpzee.com/bump.php?u=http://www.tutorials2u.com/programming/php/site-personalization-with-php/" title="Add to&nbsp;BUMPzee"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/bumpzee.png" title="Add to&nbsp;BUMPzee" alt="Add to&nbsp;BUMPzee" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://co.mments.com/track?url=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;title=Site+Personalization+With+PHP" title="Add to&nbsp;Co.mments"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/comments.png" title="Add to&nbsp;Co.mments" alt="Add to&nbsp;Co.mments" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.connotea.org/addpopup?continue=confirm&amp;uri=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;title=Site+Personalization+With+PHP" title="Add to&nbsp;Connotea"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/connotea.png" title="Add to&nbsp;Connotea" alt="Add to&nbsp;Connotea" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;title=Site+Personalization+With+PHP" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://de.lirio.us/login/?action=add&amp;address=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;title=Site+Personalization+With+PHP" title="Add to&nbsp;De.lirio.us"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/delirious.png" title="Add to&nbsp;De.lirio.us" alt="Add to&nbsp;De.lirio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.diigo.com/post?url=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;title=Site+Personalization+With+PHP" title="Add to&nbsp;Diigo"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/diigo.png" title="Add to&nbsp;Diigo" alt="Add to&nbsp;Diigo" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;title=Site+Personalization+With+PHP" title="Add to&nbsp;digg"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.dotnetkicks.com/kick/?url=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;title=Site+Personalization+With+PHP" title="Add to&nbsp;DotNetKicks"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/dotnetkicks.png" title="Add to&nbsp;DotNetKicks" alt="Add to&nbsp;DotNetKicks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.dzone.com/links/add.html?description=Site+Personalization+With+PHP&amp;url=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;title=Site+Personalization+With+PHP" title="Add to&nbsp;DZone"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/dzone.png" title="Add to&nbsp;DZone" alt="Add to&nbsp;DZone" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http://www.tutorials2u.com/programming/php/site-personalization-with-php/" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://cgi.fark.com/cgi/fark/edit.pl?new_url=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;new_comment=Site+Personalization+With+PHP&amp;new_comment=Site+Personalization+With+PHP&amp;linktype=Misc" title="Add to&nbsp;Fark"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/fark.png" title="Add to&nbsp;Fark" alt="Add to&nbsp;Fark" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://feedmelinks.com/categorize?from=toolbar&amp;op=submit&amp;name=Site+Personalization+With+PHP&amp;url=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;version=0.7" title="Add to&nbsp;Feed Me Links"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/feedmelinks.png" title="Add to&nbsp;Feed Me Links" alt="Add to&nbsp;Feed Me Links" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://extension.fleck.com/?v=b.0.804&amp;url=http://www.tutorials2u.com/programming/php/site-personalization-with-php/" title="Add to&nbsp;Fleck"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/fleck.png" title="Add to&nbsp;Fleck" alt="Add to&nbsp;Fleck" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://FriendSite.com/users/bookmark/?u=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;t=Site+Personalization+With+PHP" title="Add to&nbsp;FriendSite"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/friendsite.png" title="Add to&nbsp;FriendSite" alt="Add to&nbsp;FriendSite" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://furl.net/storeIt.jsp?t=Site+Personalization+With+PHP&amp;u=http://www.tutorials2u.com/programming/php/site-personalization-with-php/" title="Add to&nbsp;FURL"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/furl.png" title="Add to&nbsp;FURL" alt="Add to&nbsp;FURL" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;title=Site+Personalization+With+PHP" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.kaboodle.com/za/selectpage?p_pop=false&amp;pa=url&amp;u=http://www.tutorials2u.com/programming/php/site-personalization-with-php/" title="Add to&nbsp;Kaboodle"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/kaboodle.png" title="Add to&nbsp;Kaboodle" alt="Add to&nbsp;Kaboodle" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.linkagogo.com/go/AddNoPopup?url=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;title=Site+Personalization+With+PHP" title="Add to&nbsp;LinkaGoGo"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/linkagogo.png" title="Add to&nbsp;LinkaGoGo" alt="Add to&nbsp;LinkaGoGo" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.maple.nu/submit.php?url=http://www.tutorials2u.com/programming/php/site-personalization-with-php/" title="Add to&nbsp;Maple"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/maple.png" title="Add to&nbsp;Maple" alt="Add to&nbsp;Maple" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://ma.gnolia.com/bookmarklet/add?url=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;title=Site+Personalization+With+PHP&amp;description=Site+Personalization+With+PHP" title="Add to&nbsp;Ma.gnolia"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/magnolia.png" title="Add to&nbsp;Ma.gnolia" alt="Add to&nbsp;Ma.gnolia" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.mister-wong.com/index.php?action=addurl&amp;bm_url=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;bm_description=Site+Personalization+With+PHP" title="Add to&nbsp;Mister Wong"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/misterwong.png" title="Add to&nbsp;Mister Wong" alt="Add to&nbsp;Mister Wong" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;T=Site+Personalization+With+PHP" title="Add to&nbsp;Netscape"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://netvouz.com/action/submitBookmark?url=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;title=Site+Personalization+With+PHP&amp;popup=no" title="Add to&nbsp;Netvouz"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/netvouz.png" title="Add to&nbsp;Netvouz" alt="Add to&nbsp;Netvouz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.newsvine.com/_wine/save?u=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;h=Site+Personalization+With+PHP" title="Add to&nbsp;Newsvine"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/newsvine.png" title="Add to&nbsp;Newsvine" alt="Add to&nbsp;Newsvine" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.plugim.com/submit?url=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;title=Site+Personalization+With+PHP" title="Add to&nbsp;PlugIM"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/plugim.png" title="Add to&nbsp;PlugIM" alt="Add to&nbsp;PlugIM" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://popcurrent.com/submit?url=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;title=Site+Personalization+With+PHP" title="Add to&nbsp;PopCurrent"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/popcurrent.png" title="Add to&nbsp;PopCurrent" alt="Add to&nbsp;PopCurrent" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.rawsugar.com/tagger/?turl=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;tttl=Site+Personalization+With+PHP" title="Add to&nbsp;RawSugar"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/rawsugar.png" title="Add to&nbsp;RawSugar" alt="Add to&nbsp;RawSugar" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;title=Site+Personalization+With+PHP" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.rojo.com/add-subscription/?resource=http://www.tutorials2u.com/programming/php/site-personalization-with-php/" title="Add to&nbsp;Rojo"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/rojo.png" title="Add to&nbsp;Rojo" alt="Add to&nbsp;Rojo" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.simpy.com/simpy/LinkAdd.do?href=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;title=Site+Personalization+With+PHP" title="Add to&nbsp;Simpy"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/simpy.png" title="Add to&nbsp;Simpy" alt="Add to&nbsp;Simpy" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.sk-rt.com/submit.php?url=http://www.tutorials2u.com/programming/php/site-personalization-with-php/" title="Add to&nbsp;Sk*rt"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/skirt.png" title="Add to&nbsp;Sk*rt" alt="Add to&nbsp;Sk*rt" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://slashdot.org/bookmark.pl?url=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;title=Site+Personalization+With+PHP" title="Add to&nbsp;Slashdot"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/slashdot.png" title="Add to&nbsp;Slashdot" alt="Add to&nbsp;Slashdot" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="hhtp://www.stumbleupon.com/submit.php?url=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;title=Site+Personalization+With+PHP" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.shoutwire.com/?p=submit&amp;link=http://www.tutorials2u.com/programming/php/site-personalization-with-php/" title="Add to&nbsp;Shoutwire"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/shoutwire.png" title="Add to&nbsp;Shoutwire" alt="Add to&nbsp;Shoutwire" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.squidoo.com/lensmaster/bookmark?http://www.tutorials2u.com/programming/php/site-personalization-with-php/" title="Add to&nbsp;Squidoo"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/squidoo.png" title="Add to&nbsp;Squidoo" alt="Add to&nbsp;Squidoo" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.sphere.com/search?q=sphereit:http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;title=Site+Personalization+With+PHP" title="Add to&nbsp;SphereIt"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/sphereit.png" title="Add to&nbsp;SphereIt" alt="Add to&nbsp;SphereIt" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.spurl.net/spurl.php?url=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;title=Site+Personalization+With+PHP" title="Add to&nbsp;Spurl"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/spurl.png" title="Add to&nbsp;Spurl" alt="Add to&nbsp;Spurl" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://taggly.com/bookmarks.php/pass?action=add&amp;address=http://www.tutorials2u.com/programming/php/site-personalization-with-php/" title="Add to&nbsp;Taggly"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/taggly.png" title="Add to&nbsp;Taggly" alt="Add to&nbsp;Taggly" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://tailrank.com/share/?title=Site+Personalization+With+PHP&amp;link_href=http://www.tutorials2u.com/programming/php/site-personalization-with-php/" title="Add to&nbsp;Tailrank"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/tailrank.png" title="Add to&nbsp;Tailrank" alt="Add to&nbsp;Tailrank" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://www.tutorials2u.com/programming/php/site-personalization-with-php/" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.thisnext.com/pick/new/submit/sociable/?url=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;name=Site+Personalization+With+PHP" title="Add to&nbsp;ThisNext"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/thisnext.png" title="Add to&nbsp;ThisNext" alt="Add to&nbsp;ThisNext" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://webride.org/discuss/split.php?uri=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;title=Site+Personalization+With+PHP" title="Add to&nbsp;Webride"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/webride.png" title="Add to&nbsp;Webride" alt="Add to&nbsp;Webride" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.wists.com/t.php?c=null&amp;r=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;u=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;title={text}" title="Add to&nbsp;Wists"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/wists.png" title="Add to&nbsp;Wists" alt="Add to&nbsp;Wists" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http://www.tutorials2u.com/programming/php/site-personalization-with-php/&amp;t=Site+Personalization+With+PHP" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
<a style="font-size:90%;text-align: right; " title="Click me to hide the sites." href="#" onclick="$$('div.d36').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); return false;">Hide Sites</a>
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.tutorials2u.com/programming/php/site-personalization-with-php/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Developing State-enabled Applications With PHP</title>
		<link>http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/</link>
		<comments>http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/#comments</comments>
		<pubDate>Thu, 28 Feb 2008 21:02:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Developing State-enabled Applications With PHP]]></category>

		<guid isPermaLink="false">http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/</guid>
		<description><![CDATA[Installment 1
Developing State-enabled Applications With PHP
When a user is browsing through a website and is surfing from one web page to another, sometimes the website needs to remember the actions (e.g. choices) performed by the user. For example, in a website that sells DVDs, the user typically browses through a list of DVDs and selects [...]]]></description>
			<content:encoded><![CDATA[<p>Installment 1</p>
<p>Developing State-enabled Applications With PHP</p>
<p>When a user is browsing through a website and is surfing from one web page to another, sometimes the website needs to remember the actions (e.g. choices) performed by the user. For example, in a website that sells DVDs, the user typically browses through a list of DVDs and selects individual DVDs for check out at the end of the shopping session. The website needs to remember which DVDs the user has selected because the selected items needs to be presented again to the user when the user checks out. In other words, the website needs to remember the State - i.e. the selected items - of the user&#8217;s browsing activities.</p>
<p>However, HTTP is a Stateless protocol and is ill-equipped to handle States. A standard HTML website basically provides information to the user and a series of links that simply directs the user to other related web pages. This Stateless nature of HTTP allows the website to be replicated across many servers for load balancing purposes. A major drawback is that while browsing from one page to another, the website does not remember the State of the browsing session. This make interactivity almost impossible.</p>
<p>In order to increase interactivity, the developer can use the session handling features of PHP to augment the features of HTTP in order to remember the State of the browsing session. The are basically 2 ways PHP does this:<br />
1. Using cookies<br />
2. Using Sessions</p>
<p>The next installment discusses how to manage sessions using cookies&#8230;</p>
<p>Installment 2</p>
<p>Cookies</p>
<p>Cookies are used to store State-information in the browser. Browsers are allowed to keep up to 20 cookies for each domain and the values stored in the cookie cannot exceed 4 KB. If more than 20 cookies are created by the website, only the latest 20 are stored. Cookies are only suitable in instances that do not require complex session communications and are not favoured by some developers because of privacy issues. Furthermore, some users disable support for cookies at their browsers.</p>
<p>The following is a typical server-browser sequence of events that occur when a cookie is used:<br />
1. The server knows that it needs to remember the State of browsing session<br />
2. The server creates a cookie and uses the Set-Cookie header field in the HTTP response to pass the cookie to the browser<br />
3. The browser reads the cookie field in the HTTP response and stores the cookie<br />
4. This cookie information is passed along future browser-server communications and can be used in the PHP scripts as a variable</p>
<p>PHP provides a function called setcookie() to allow easy creation of cookies. The syntax for setcookie is:<br />
int setcookie(string name, [string val], [int expiration_date], [string path], string domain, [int secure])</p>
<p>The parameters are:<br />
1. name - this is a mandatory parameter and is used subsequently to identify the cookie<br />
2. value - the value of the cookie - e.g. if the cookie is used to store the name of the user, the value parameter will store the actual name - e.g. John<br />
3. expiration_date - the lifetime of the cookie. After this date, the cookie expires and is unusable<br />
4. path - the path refers to the URL from which the cookie is valid and allowed<br />
5. domain - the domain the created the cookie and is allowed to read the contents of the cookie<br />
6. secure - specifies if the cookie can be sent only through a secure connection - e.g. SSL enable sessions</p>
<p>The following is an example that displays to the user how many times a specific web page has been displayed to the user. Copy the code below (both the php and the html) into a file with the .php extension and test it out.</p>
<p>[?php<br />
//check if the $count variable has been associated with the count cookie<br />
if (!isset($count)) {<br />
$count = 0;<br />
} else {<br />
$count++;<br />
}<br />
setcookie(&#8221;count&#8221;, $count, time()+600, &#8220;/&#8221;, &#8220;&#8221;, 0);<br />
?]</p>
<p>[html]<br />
[head]<br />
[title]Session Handling Using Cookies[/title]<br />
[/head]<br />
[body]<br />
This page has been displayed: [?=$count ?] times.<br />
[/body]<br />
[/html]</p>
<p>The next installment discusses how to manage sessions using PHP session handling functions with cookies enabled&#8230;</p>
<p>Installment 3</p>
<p>PHP Session Handling - Cookies Enabled</p>
<p>Instead of storing session information at the browser through the use of cookies, the information can instead be stored at the server in session files. One session file is created and maintained for each user session. For example, if there are three concurrent users browsing the website, three session files will be created and maintained - one for each user. The session files are deleted if the session is explicitly closed by the PHP script or by a daemon garbage collection process provided by PHP. Good programming practice would call for sessions to be closed explicitly in the script.</p>
<p>The following is a typical server-browser sequence of events that occur when a PHP session handling is used:<br />
1. The server knows that it needs to remember the State of browsing session<br />
2. PHP generates a sssion ID and creates a session file to store future information as required by subsequent pages<br />
3. A cookie is generated wih the session ID at the browser<br />
4. This cookie that stores the session ID is transparently and automatically sent to the server for all subsequent requests to the server</p>
<p>The following PHP session-handling example accomplishes the same outcome as the previous cookie example. Copy the code below (both the php and the html) into a file with the .php extension and test it out.</p>
<p>[?php<br />
//starts a session<br />
session_start();</p>
<p>//informs PHP that count information needs to be remembered in the session file<br />
if (!session_is_registered(&#8221;count&#8221;)) {<br />
session_register(&#8221;count&#8221;);<br />
$count = 0;<br />
}<br />
else {<br />
$count++;<br />
}</p>
<p>$session_id = session_id();<br />
?]</p>
<p>[html]<br />
[head]<br />
[title]PHP Session Handling - Cookie-Enabled[/title]<br />
[/head]<br />
[body]<br />
The current session id is: [?=$session_id ?]<br />
This page has been displayed: [?=$count ?] times.<br />
[/body]<br />
[/html]</p>
<p>A summary of the functions that PHP provides for session handling are:<br />
1. boolean start_session() - initializes a session<br />
2. string session_id([string id]) - either returns the current session id or specify the session id to be used when the session is created<br />
3. boolean session_register(mixed name [, mixed &#8230;]) - registers variables to be stored in the session file. Each parameter passed in the function is a separate variable<br />
4. boolean session_is_registered(string variable_name) - checks if a variable has been previously registered to be stored in the session file<br />
5. session_unregister(string varriable_name) - unregisters a variable from the session file. Unregistered variables are no longer valid for reference in the session.<br />
6. session_unset() - unsets all session variables. It is important to note that all the variables remain registered.<br />
7. boolean session_destroy() - destroys the session. This is opposite of the start_session function.</p>
<p>The next installment discusses how to manage sessions using PHP session handling functions when cookies are disabled&#8230;</p>
<p>Installment 4</p>
<p>PHP Session Handling - Without Cookies</p>
<p>If cookies are disabled at the browser, the above example cannot work. This is because although the session file that stores all the variables is kept at the server, a cookie is still needed at the browser to store the session ID that is used to identify the session and its associated session file. The most common way around this would be to explicitly pass the session ID back to the server from the browser as a query parameter in the URL.</p>
<p>For example, the PHP script generates requests subsequent to the start_session call in the following format:<br />
http://www.yourhost.com/yourphpfile.php?PHPSESSID=[actual session ID]</p>
<p>The following are excerpts that illustrate the discussion:</p>
<p>Manually building the URL:<br />
$url = &#8220;http://www.yoursite.com/yourphppage.php?PHPSESSID=&#8221; . session_id();<br />
[a href=&#8221;[?=$url ?]&#8221;]Anchor Text[/a]</p>
<p>Building the URL using SID:<br />
[a href=&#8221;http://www.yoursite.com/yourphppage.php?[?=SID ?]&#8221;]Anchor Text[/a]</p>
<h1>About the Author</h1>
<p>This PHP scripting article is written by John L. John L is the Webmaster of The Ultimate BMW Blog! (http://www.bimmercenter.com).</p>
<p><a href="http://www.bimmercenter.com/" target="_blank">The Ultimate BMW Blog!</a></p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a title="Click me to see the sites." href="#" onclick="$$('div.d35').each( function(e) { e.visualEffect('slide_down',{duration:2.5}) }); return false;"><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d35" style="overflow:hidden">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://blinkbits.com/bookmarklets/save.php?v=1&amp;source_url=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;title=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;BlinkBits"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/blinkbits.png" title="Add to&nbsp;BlinkBits" alt="Add to&nbsp;BlinkBits" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://blinklist.com/index.php?Action=Blink/addblink.php&amp;Name=Developing+State-enabled+Applications+With+PHP&amp;Description=Developing+State-enabled+Applications+With+PHP&amp;Url=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/" title="Add to&nbsp;BlinkList"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/blinklist.png" title="Add to&nbsp;BlinkList" alt="Add to&nbsp;BlinkList" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.bloglines.com/sub/http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/" title="Add to&nbsp;Bloglines"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/bloglines.png" title="Add to&nbsp;Bloglines" alt="Add to&nbsp;Bloglines" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;title=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;Blogmarks"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/bmarks.png" title="Add to&nbsp;Blogmarks" alt="Add to&nbsp;Blogmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.blogmemes.net/post.php?url=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;title=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;Blogmemes"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/blogmemes.png" title="Add to&nbsp;Blogmemes" alt="Add to&nbsp;Blogmemes" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://bluedot.us/Authoring.aspx?u=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;t=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;Blue Dot"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/bluedot.png" title="Add to&nbsp;Blue Dot" alt="Add to&nbsp;Blue Dot" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.bumpzee.com/bump.php?u=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/" title="Add to&nbsp;BUMPzee"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/bumpzee.png" title="Add to&nbsp;BUMPzee" alt="Add to&nbsp;BUMPzee" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://co.mments.com/track?url=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;title=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;Co.mments"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/comments.png" title="Add to&nbsp;Co.mments" alt="Add to&nbsp;Co.mments" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.connotea.org/addpopup?continue=confirm&amp;uri=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;title=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;Connotea"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/connotea.png" title="Add to&nbsp;Connotea" alt="Add to&nbsp;Connotea" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;title=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://de.lirio.us/login/?action=add&amp;address=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;title=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;De.lirio.us"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/delirious.png" title="Add to&nbsp;De.lirio.us" alt="Add to&nbsp;De.lirio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.diigo.com/post?url=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;title=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;Diigo"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/diigo.png" title="Add to&nbsp;Diigo" alt="Add to&nbsp;Diigo" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;title=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;digg"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.dotnetkicks.com/kick/?url=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;title=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;DotNetKicks"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/dotnetkicks.png" title="Add to&nbsp;DotNetKicks" alt="Add to&nbsp;DotNetKicks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.dzone.com/links/add.html?description=Developing+State-enabled+Applications+With+PHP&amp;url=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;title=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;DZone"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/dzone.png" title="Add to&nbsp;DZone" alt="Add to&nbsp;DZone" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://cgi.fark.com/cgi/fark/edit.pl?new_url=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;new_comment=Developing+State-enabled+Applications+With+PHP&amp;new_comment=Developing+State-enabled+Applications+With+PHP&amp;linktype=Misc" title="Add to&nbsp;Fark"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/fark.png" title="Add to&nbsp;Fark" alt="Add to&nbsp;Fark" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://feedmelinks.com/categorize?from=toolbar&amp;op=submit&amp;name=Developing+State-enabled+Applications+With+PHP&amp;url=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;version=0.7" title="Add to&nbsp;Feed Me Links"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/feedmelinks.png" title="Add to&nbsp;Feed Me Links" alt="Add to&nbsp;Feed Me Links" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://extension.fleck.com/?v=b.0.804&amp;url=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/" title="Add to&nbsp;Fleck"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/fleck.png" title="Add to&nbsp;Fleck" alt="Add to&nbsp;Fleck" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://FriendSite.com/users/bookmark/?u=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;t=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;FriendSite"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/friendsite.png" title="Add to&nbsp;FriendSite" alt="Add to&nbsp;FriendSite" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://furl.net/storeIt.jsp?t=Developing+State-enabled+Applications+With+PHP&amp;u=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/" title="Add to&nbsp;FURL"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/furl.png" title="Add to&nbsp;FURL" alt="Add to&nbsp;FURL" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;title=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.kaboodle.com/za/selectpage?p_pop=false&amp;pa=url&amp;u=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/" title="Add to&nbsp;Kaboodle"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/kaboodle.png" title="Add to&nbsp;Kaboodle" alt="Add to&nbsp;Kaboodle" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.linkagogo.com/go/AddNoPopup?url=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;title=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;LinkaGoGo"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/linkagogo.png" title="Add to&nbsp;LinkaGoGo" alt="Add to&nbsp;LinkaGoGo" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.maple.nu/submit.php?url=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/" title="Add to&nbsp;Maple"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/maple.png" title="Add to&nbsp;Maple" alt="Add to&nbsp;Maple" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://ma.gnolia.com/bookmarklet/add?url=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;title=Developing+State-enabled+Applications+With+PHP&amp;description=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;Ma.gnolia"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/magnolia.png" title="Add to&nbsp;Ma.gnolia" alt="Add to&nbsp;Ma.gnolia" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.mister-wong.com/index.php?action=addurl&amp;bm_url=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;bm_description=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;Mister Wong"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/misterwong.png" title="Add to&nbsp;Mister Wong" alt="Add to&nbsp;Mister Wong" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;T=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;Netscape"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://netvouz.com/action/submitBookmark?url=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;title=Developing+State-enabled+Applications+With+PHP&amp;popup=no" title="Add to&nbsp;Netvouz"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/netvouz.png" title="Add to&nbsp;Netvouz" alt="Add to&nbsp;Netvouz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.newsvine.com/_wine/save?u=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;h=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;Newsvine"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/newsvine.png" title="Add to&nbsp;Newsvine" alt="Add to&nbsp;Newsvine" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.plugim.com/submit?url=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;title=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;PlugIM"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/plugim.png" title="Add to&nbsp;PlugIM" alt="Add to&nbsp;PlugIM" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://popcurrent.com/submit?url=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;title=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;PopCurrent"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/popcurrent.png" title="Add to&nbsp;PopCurrent" alt="Add to&nbsp;PopCurrent" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.rawsugar.com/tagger/?turl=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;tttl=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;RawSugar"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/rawsugar.png" title="Add to&nbsp;RawSugar" alt="Add to&nbsp;RawSugar" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;title=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.rojo.com/add-subscription/?resource=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/" title="Add to&nbsp;Rojo"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/rojo.png" title="Add to&nbsp;Rojo" alt="Add to&nbsp;Rojo" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.simpy.com/simpy/LinkAdd.do?href=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;title=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;Simpy"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/simpy.png" title="Add to&nbsp;Simpy" alt="Add to&nbsp;Simpy" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.sk-rt.com/submit.php?url=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/" title="Add to&nbsp;Sk*rt"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/skirt.png" title="Add to&nbsp;Sk*rt" alt="Add to&nbsp;Sk*rt" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://slashdot.org/bookmark.pl?url=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;title=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;Slashdot"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/slashdot.png" title="Add to&nbsp;Slashdot" alt="Add to&nbsp;Slashdot" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="hhtp://www.stumbleupon.com/submit.php?url=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;title=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.shoutwire.com/?p=submit&amp;link=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/" title="Add to&nbsp;Shoutwire"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/shoutwire.png" title="Add to&nbsp;Shoutwire" alt="Add to&nbsp;Shoutwire" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.squidoo.com/lensmaster/bookmark?http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/" title="Add to&nbsp;Squidoo"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/squidoo.png" title="Add to&nbsp;Squidoo" alt="Add to&nbsp;Squidoo" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.sphere.com/search?q=sphereit:http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;title=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;SphereIt"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/sphereit.png" title="Add to&nbsp;SphereIt" alt="Add to&nbsp;SphereIt" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.spurl.net/spurl.php?url=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;title=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;Spurl"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/spurl.png" title="Add to&nbsp;Spurl" alt="Add to&nbsp;Spurl" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://taggly.com/bookmarks.php/pass?action=add&amp;address=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/" title="Add to&nbsp;Taggly"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/taggly.png" title="Add to&nbsp;Taggly" alt="Add to&nbsp;Taggly" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://tailrank.com/share/?title=Developing+State-enabled+Applications+With+PHP&amp;link_href=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/" title="Add to&nbsp;Tailrank"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/tailrank.png" title="Add to&nbsp;Tailrank" alt="Add to&nbsp;Tailrank" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.thisnext.com/pick/new/submit/sociable/?url=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;name=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;ThisNext"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/thisnext.png" title="Add to&nbsp;ThisNext" alt="Add to&nbsp;ThisNext" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://webride.org/discuss/split.php?uri=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;title=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;Webride"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/webride.png" title="Add to&nbsp;Webride" alt="Add to&nbsp;Webride" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.wists.com/t.php?c=null&amp;r=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;u=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;title={text}" title="Add to&nbsp;Wists"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/wists.png" title="Add to&nbsp;Wists" alt="Add to&nbsp;Wists" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/&amp;t=Developing+State-enabled+Applications+With+PHP" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
<a style="font-size:90%;text-align: right; " title="Click me to hide the sites." href="#" onclick="$$('div.d35').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); return false;">Hide Sites</a>
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.tutorials2u.com/programming/php/developing-state-enabled-applications-with-php/feed/</wfw:commentRss>
		</item>
		<item>
		<title>MySQL Database Handling in PHP</title>
		<link>http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/</link>
		<comments>http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/#comments</comments>
		<pubDate>Thu, 28 Feb 2008 21:01:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/</guid>
		<description><![CDATA[Most interactive websites nowadays require data to be presented dynamically and interactively based on input from the user. For example, a customer may need to log into a retail website to check his purchasing history. In this instance, the website would have stored two types of data in order for the customer to perform the [...]]]></description>
			<content:encoded><![CDATA[<p>Most interactive websites nowadays require data to be presented dynamically and interactively based on input from the user. For example, a customer may need to log into a retail website to check his purchasing history. In this instance, the website would have stored two types of data in order for the customer to perform the check – the customer’s personal login details; and the customer’s purchased items. This data can be stored in two types of storage – flat files or databases.</p>
<p>Flat files are only feasible in very low to low volume websites as flat files have 3 inherent weaknesses:<br />
1.The inability to index the data. This makes it necessary to potentially read ALL the data sequentially. This is a major problem if there are a lot of records in the flat file because the time required to read the flat file is proportionate to the number of records in the flat file.<br />
2.The inability to efficiently control access by users to the data<br />
3.The inefficient storage of the data. In most cases, the data would not be encrypted or compressed as this would exacerbate the problem no. 1 above</p>
<p>The alternative which is, in my opinion, the only feasible method, is to store the data in a database. One of the most prevalent databases in use is MySQL. Data that is stored in a database can easily be indexed, managed and stored efficiently. Besides that, most databases also provide a suite of accompanying utilities that allow the database administrator to maintain the database – for example, backup and restore, etc.</p>
<p>Websites scripted using PHP are very well suited for the MySQL database as PHP has a custom and integrated MySQL module that communicates very efficiently with MySQL. PHP can also communicate with MySQL through the standard ODBC as MySQL is ODBC-compliant, However, this will not be as efficient as using the custom MySQL module for PHP.</p>
<p>The rest of this article is a tutorial on how to use PHP to:<br />
1.Connect to a MySQL database<br />
2.Execute standard SQL statements against the MySQL database</p>
<p>Starting a Session with MySQL</p>
<p>Before the PHP script can communicate with the database to query, insert or update the database, the PHP script will first need to connect to the MySQL server and specify which database in the MySQL server to operate on.</p>
<p>The mysql_connect() and mysql_select_db() functions are provided for this purpose. In order to connect to the MySQL server, the server name/address; a username; and a valid password is required. Once a connection is successful, the database needs to be specified.</p>
<p>The following 2 code excerpts illustrate how to perform the server connection and database selection:<br />
@mysql_connect(&#8221;[servername]&#8221;, &#8220;[username]&#8221;, &#8220;[password]&#8221;) or die(&#8221;Cannot connect to DB!&#8221;);<br />
@mysql_select_db(&#8221;[databasename]&#8221;) or die(&#8221;Cannot select DB!&#8221;);</p>
<p>The @ operator is used to suppress any error messages that mysql_connect() and mysql_select_db() functions may produce if an error occurred. The die() function is used to end the script execution and display a custom error message.</p>
<p>Executing SQL Statements against a MySQL database</p>
<p>Once the connection and database selection is successfully performed, the PHP script can now proceed to operate on the database using standard SQL statements. The mysql_query() function is used for executing standard SQL statements against the database. In the following example, the PHP script queries a table called tbl_login in the previously selected database to determine if a username/password pair provided by the user is valid.</p>
<p>Assumption:<br />
The tbl_login table has 3 columns named login, password, last_logged_in. The last_logged_in column stores the time that the user last logged into the system.</p>
<p>// The $username and $passwd variable should rightly be set by the login form<br />
// through the POST method. For the purpose of this example, we’re manually coding it.<br />
$username = “john”;<br />
$passwd = “mypassword”;</p>
<p>// We generate a SELECT SQL statement for execution.<br />
$sql=&#8221;SELECT * FROM tbl_login WHERE login = &#8216;&#8221;.$username.&#8221;&#8216; AND password = &#8216;&#8221;.$passwd.&#8221;&#8216;&#8221;;</p>
<p>// Execute the SQL statement against the currently selected database.<br />
// The results will be stored in the $r variable.<br />
$r = mysql_query($sql);</p>
<p>// After the mysql_query() command executes, the $r variable is examined to<br />
// determine of the mysql_query() was successfully executed.<br />
if(!$r) {<br />
$err=mysql_error();<br />
print $err;<br />
exit();<br />
}</p>
<p>// If everything went well, check if the query returned a result – i.e. if the username/password<br />
// pair was found in the database. The mysql_affected_rows() function is used for this purpose.<br />
// mysql_affected_rows() will return the number of rows in the database table that was affected<br />
// by the last query<br />
if(mysql_affected_rows()==0){<br />
print &#8220;Username/password pair is invalid. Please try again.&#8221;;<br />
}<br />
else {</p>
<p>// If successful, read out the last logged in time into a $last variable for display to the user<br />
$row=mysql_fetch_array($r);<br />
$last=$row[&#8221;last_logged_in&#8221;];<br />
print “Login successful. You last logged in at ”.$last.”.”;</p>
<p>}</p>
<p>The above example demonstrated how a SELECT SQL statement is executed against the selected database. The same method is used to execute other SQL statements (e.g. UPDATE, INSERT, DELETE, etc.) against the database using the mysql_query() and mysql_affected_rows() functions.</p>
<h1>About the Author</h1>
<p>This PHP scripting article is written by John L. John L is the Webmaster of The Ultimate BMW Blog! (http://www.bimmercenter.com).</p>
<p><a href="http://www.bimmercenter.com/" target="_blank">The Ultimate BMW Blog!</a></p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a title="Click me to see the sites." href="#" onclick="$$('div.d34').each( function(e) { e.visualEffect('slide_down',{duration:2.5}) }); return false;"><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d34" style="overflow:hidden">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://blinkbits.com/bookmarklets/save.php?v=1&amp;source_url=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/&amp;title=MySQL+Database+Handling+in+PHP" title="Add to&nbsp;BlinkBits"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/blinkbits.png" title="Add to&nbsp;BlinkBits" alt="Add to&nbsp;BlinkBits" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://blinklist.com/index.php?Action=Blink/addblink.php&amp;Name=MySQL+Database+Handling+in+PHP&amp;Description=MySQL+Database+Handling+in+PHP&amp;Url=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/" title="Add to&nbsp;BlinkList"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/blinklist.png" title="Add to&nbsp;BlinkList" alt="Add to&nbsp;BlinkList" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.bloglines.com/sub/http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/" title="Add to&nbsp;Bloglines"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/bloglines.png" title="Add to&nbsp;Bloglines" alt="Add to&nbsp;Bloglines" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/&amp;title=MySQL+Database+Handling+in+PHP" title="Add to&nbsp;Blogmarks"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/bmarks.png" title="Add to&nbsp;Blogmarks" alt="Add to&nbsp;Blogmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.blogmemes.net/post.php?url=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/&amp;title=MySQL+Database+Handling+in+PHP" title="Add to&nbsp;Blogmemes"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/blogmemes.png" title="Add to&nbsp;Blogmemes" alt="Add to&nbsp;Blogmemes" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://bluedot.us/Authoring.aspx?u=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/&amp;t=MySQL+Database+Handling+in+PHP" title="Add to&nbsp;Blue Dot"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/bluedot.png" title="Add to&nbsp;Blue Dot" alt="Add to&nbsp;Blue Dot" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.bumpzee.com/bump.php?u=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/" title="Add to&nbsp;BUMPzee"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/bumpzee.png" title="Add to&nbsp;BUMPzee" alt="Add to&nbsp;BUMPzee" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://co.mments.com/track?url=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/&amp;title=MySQL+Database+Handling+in+PHP" title="Add to&nbsp;Co.mments"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/comments.png" title="Add to&nbsp;Co.mments" alt="Add to&nbsp;Co.mments" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.connotea.org/addpopup?continue=confirm&amp;uri=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/&amp;title=MySQL+Database+Handling+in+PHP" title="Add to&nbsp;Connotea"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/connotea.png" title="Add to&nbsp;Connotea" alt="Add to&nbsp;Connotea" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/&amp;title=MySQL+Database+Handling+in+PHP" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://de.lirio.us/login/?action=add&amp;address=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/&amp;title=MySQL+Database+Handling+in+PHP" title="Add to&nbsp;De.lirio.us"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/delirious.png" title="Add to&nbsp;De.lirio.us" alt="Add to&nbsp;De.lirio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.diigo.com/post?url=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/&amp;title=MySQL+Database+Handling+in+PHP" title="Add to&nbsp;Diigo"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/diigo.png" title="Add to&nbsp;Diigo" alt="Add to&nbsp;Diigo" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/&amp;title=MySQL+Database+Handling+in+PHP" title="Add to&nbsp;digg"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.dotnetkicks.com/kick/?url=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/&amp;title=MySQL+Database+Handling+in+PHP" title="Add to&nbsp;DotNetKicks"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/dotnetkicks.png" title="Add to&nbsp;DotNetKicks" alt="Add to&nbsp;DotNetKicks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.dzone.com/links/add.html?description=MySQL+Database+Handling+in+PHP&amp;url=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/&amp;title=MySQL+Database+Handling+in+PHP" title="Add to&nbsp;DZone"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/dzone.png" title="Add to&nbsp;DZone" alt="Add to&nbsp;DZone" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://cgi.fark.com/cgi/fark/edit.pl?new_url=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/&amp;new_comment=MySQL+Database+Handling+in+PHP&amp;new_comment=MySQL+Database+Handling+in+PHP&amp;linktype=Misc" title="Add to&nbsp;Fark"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/fark.png" title="Add to&nbsp;Fark" alt="Add to&nbsp;Fark" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://feedmelinks.com/categorize?from=toolbar&amp;op=submit&amp;name=MySQL+Database+Handling+in+PHP&amp;url=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/&amp;version=0.7" title="Add to&nbsp;Feed Me Links"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/feedmelinks.png" title="Add to&nbsp;Feed Me Links" alt="Add to&nbsp;Feed Me Links" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://extension.fleck.com/?v=b.0.804&amp;url=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/" title="Add to&nbsp;Fleck"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/fleck.png" title="Add to&nbsp;Fleck" alt="Add to&nbsp;Fleck" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://FriendSite.com/users/bookmark/?u=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/&amp;t=MySQL+Database+Handling+in+PHP" title="Add to&nbsp;FriendSite"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/friendsite.png" title="Add to&nbsp;FriendSite" alt="Add to&nbsp;FriendSite" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://furl.net/storeIt.jsp?t=MySQL+Database+Handling+in+PHP&amp;u=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/" title="Add to&nbsp;FURL"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/furl.png" title="Add to&nbsp;FURL" alt="Add to&nbsp;FURL" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/&amp;title=MySQL+Database+Handling+in+PHP" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.kaboodle.com/za/selectpage?p_pop=false&amp;pa=url&amp;u=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/" title="Add to&nbsp;Kaboodle"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/kaboodle.png" title="Add to&nbsp;Kaboodle" alt="Add to&nbsp;Kaboodle" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.linkagogo.com/go/AddNoPopup?url=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/&amp;title=MySQL+Database+Handling+in+PHP" title="Add to&nbsp;LinkaGoGo"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/linkagogo.png" title="Add to&nbsp;LinkaGoGo" alt="Add to&nbsp;LinkaGoGo" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.maple.nu/submit.php?url=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/" title="Add to&nbsp;Maple"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/maple.png" title="Add to&nbsp;Maple" alt="Add to&nbsp;Maple" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://ma.gnolia.com/bookmarklet/add?url=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/&amp;title=MySQL+Database+Handling+in+PHP&amp;description=MySQL+Database+Handling+in+PHP" title="Add to&nbsp;Ma.gnolia"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/magnolia.png" title="Add to&nbsp;Ma.gnolia" alt="Add to&nbsp;Ma.gnolia" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.mister-wong.com/index.php?action=addurl&amp;bm_url=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/&amp;bm_description=MySQL+Database+Handling+in+PHP" title="Add to&nbsp;Mister Wong"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/misterwong.png" title="Add to&nbsp;Mister Wong" alt="Add to&nbsp;Mister Wong" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/&amp;T=MySQL+Database+Handling+in+PHP" title="Add to&nbsp;Netscape"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://netvouz.com/action/submitBookmark?url=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/&amp;title=MySQL+Database+Handling+in+PHP&amp;popup=no" title="Add to&nbsp;Netvouz"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/netvouz.png" title="Add to&nbsp;Netvouz" alt="Add to&nbsp;Netvouz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.newsvine.com/_wine/save?u=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/&amp;h=MySQL+Database+Handling+in+PHP" title="Add to&nbsp;Newsvine"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/newsvine.png" title="Add to&nbsp;Newsvine" alt="Add to&nbsp;Newsvine" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.plugim.com/submit?url=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/&amp;title=MySQL+Database+Handling+in+PHP" title="Add to&nbsp;PlugIM"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/plugim.png" title="Add to&nbsp;PlugIM" alt="Add to&nbsp;PlugIM" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://popcurrent.com/submit?url=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/&amp;title=MySQL+Database+Handling+in+PHP" title="Add to&nbsp;PopCurrent"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/popcurrent.png" title="Add to&nbsp;PopCurrent" alt="Add to&nbsp;PopCurrent" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.rawsugar.com/tagger/?turl=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/&amp;tttl=MySQL+Database+Handling+in+PHP" title="Add to&nbsp;RawSugar"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/rawsugar.png" title="Add to&nbsp;RawSugar" alt="Add to&nbsp;RawSugar" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/&amp;title=MySQL+Database+Handling+in+PHP" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.rojo.com/add-subscription/?resource=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/" title="Add to&nbsp;Rojo"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/rojo.png" title="Add to&nbsp;Rojo" alt="Add to&nbsp;Rojo" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.simpy.com/simpy/LinkAdd.do?href=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/&amp;title=MySQL+Database+Handling+in+PHP" title="Add to&nbsp;Simpy"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/simpy.png" title="Add to&nbsp;Simpy" alt="Add to&nbsp;Simpy" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.sk-rt.com/submit.php?url=http://www.tutorials2u.com/programming/php/mysql-database-handling-in-php/" title="Add to&nbsp;Sk*rt"><img class="social_img" src="http://www.tutorials2u.com/wp-content/plugins/social-bookmarks/images/skirt.png" title="Add to&nbsp;Sk*rt" alt="Add to&nbsp;Sk*rt" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://slashdot.org/bo