<?xml version="1.0" encoding="UTF-8"?>
<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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ben Lonchar Professional Web Developer &#38; Consultant</title>
	<atom:link href="http://benlonchar.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://benlonchar.com</link>
	<description>Ben Lonchar Professional Connecticut Web Developer &#38; Consultant</description>
	<lastBuildDate>Thu, 01 Mar 2012 19:46:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Quick Tip &#8211; Jquery edit-in-place with MySQL</title>
		<link>http://benlonchar.com/blog/quick-tip-jquery-edit-in-place/</link>
		<comments>http://benlonchar.com/blog/quick-tip-jquery-edit-in-place/#comments</comments>
		<pubDate>Sat, 16 Apr 2011 18:13:39 +0000</pubDate>
		<dc:creator>Ben Lonchar</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://benlonchar.com/?p=54</guid>
		<description><![CDATA[Ok, I wanted to share a trick I came up with yesterday working on a project. What I needed was to create a table from a MySQL result, and be able to edit all the fields in the table. I<span class="ellipsis">&#8230;</span> <a href="http://benlonchar.com/blog/quick-tip-jquery-edit-in-place/"><div class="see-more">See more &#8250;</div><!-- end of .see-more --></a>]]></description>
			<content:encoded><![CDATA[<p>Ok, I wanted to share a trick I came up with yesterday working on a project. What I needed was to create a table from a MySQL result, and be able to edit all the fields in the table. I decided to use JQUERY and AJAX to accomplish this.</p>
<p>I decided on JQUERY and AJAX for a few reasons. I didn&#8217;t want the user to have to leave or reload the page each time a value was changed. And, speed was important too and I find AJAX is a great way to boost your load times as most of the work is done in the background.</p>
<p>So what does it do? Well it creates a text element that changes to an HTML input on click. After the value is changed it is sent via AJAX to another page that inserts the new data into MySQL.</p>
<p>What you need, You will need the following JavaScript files (Note: You only need jquery.js if you are not currently using any JQUERY on your page.)</p>
<ul>
<li><a href="http://shopbluesoft.com/design/code_deposit/edit.js" target="_blank">http://shopbluesoft.com/design/code_deposit/edit.js</a></li>
<li><a href="http://shopbluesoft.com/design/code_deposit/jquery.editinplace.packed.js" target="_blank">http://shopbluesoft.com/design/code_deposit/jquery.editinplace.packed.js</a></li>
<li><a href="http://shopbluesoft.com/design/code_deposit/jquery.js" target="_blank">http://shopbluesoft.com/design/code_deposit/jquery.js</a></li>
</ul>
<p>Once you download these call them in the HEAD section of your page.</p>
<blockquote><p>&lt;head&gt;<br />
&lt;script type=&#8221;text/javascript&#8221; src=&#8221;../js/jquery.editinplace.packed.js&#8221;&gt;&lt;/script&gt;<br />
&lt;script type=&#8221;text/javascript&#8221; src=&#8221;../js/edit.js&#8221;&gt;&lt;/script&gt;<br />
&lt;script type=&#8221;text/javascript&#8221; src=&#8221;../js/jquery.js&#8221;&gt;&lt;/script&gt;&lt;/head&gt;</p></blockquote>
<p>After this all you need to do is give an element the name &#8220;editme1&#8243; like so</p>
<blockquote><p>&lt;span class=&#8221;editme1&#8243; id=&#8221;links-title-1&#8242;&#8221;&gt;This can be changed&lt;/span&gt;</p></blockquote>
<p>Now what I have done is set it up in PHP to separate the id by &#8220;-&#8221; and get the table name from the first value, the column from the second and the row id in the third like so</p>
<blockquote><p>id=&#8221;table-column-id&#8221;</p></blockquote>
<p>This allows you to reuse this script anywhere and simply change the ID to allow it update any MySQL field.</p>
<p>Here is the php that handles the request. (edit_in_place_server.php)</p>
<blockquote><p>&lt;?<br />
include(&#8216;../connect.inc&#8217;);</p>
<p>$update_value = $_POST['update_value'];<br />
$element_id = $_POST['element_id'];<br />
$original = $_POST['original_html'];</p>
<p>$element = explode(&#8220;-&#8221;, $element_id);</p>
<p>$table = $element['0'];<br />
$col = $element['1'];<br />
$row_id = $element['2'];</p>
<p>$sql = &#8220;UPDATE &#8220;.$table.&#8221; SET &#8220;.$col.&#8221;=&#8217;&#8221;.$update_value.&#8221;&#8216; WHERE id=&#8217;&#8221;.$row_id.&#8221;&#8216;&#8221;;<br />
$result = mysql_query($sql) or die(mysql_error());</p>
<p>if($result){ echo $update_value; }</p></blockquote>
<p>The script echos the new value and it is returned to the page to replace the old value.</p>
<p>Feel free to use this code anywhere you can, I hope it helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://benlonchar.com/blog/quick-tip-jquery-edit-in-place/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>The best ways to get traffic to your website.</title>
		<link>http://benlonchar.com/blog/the-best-ways-to-get-traffic-to-your-website/</link>
		<comments>http://benlonchar.com/blog/the-best-ways-to-get-traffic-to-your-website/#comments</comments>
		<pubDate>Tue, 29 Mar 2011 19:34:27 +0000</pubDate>
		<dc:creator>Ben Lonchar</dc:creator>
				<category><![CDATA[Internet Marketing]]></category>

		<guid isPermaLink="false">http://benlonchar.com/?p=16</guid>
		<description><![CDATA[There are a ton of ways to get visitors to your new website. Unfortunately the only constant in SEO is change. Google changes its algorithms constantly so keeping up can be a pain in the ass. However there are a<span class="ellipsis">&#8230;</span> <a href="http://benlonchar.com/blog/the-best-ways-to-get-traffic-to-your-website/"><div class="see-more">See more &#8250;</div><!-- end of .see-more --></a>]]></description>
			<content:encoded><![CDATA[<p>There are a ton of ways to get visitors to your new website. Unfortunately the only constant in SEO is change. Google changes its algorithms constantly so keeping up can be a pain in the ass. However there are a few tried and true methods that will always work to get new visors and more backlinks to your site. There are many creative advertising techniques I want to talk about free traffic today though. I found these to be the best long term and short term ways to not only get free traffic but get quality backlinks.</p>
<p>&nbsp;</p>
<ol>
<li><strong>Content, Content, Content </strong>Everyone knows content is king and as far as SEO goes this has never been more true. Not only does quality content give users a reason to stay, it gives them a reason to tell there friends to come to your site.</li>
<li><strong>Forum Posting</strong> There are forums for almost every industry and market and what better way to find new customers then to go them. When posting on forums be sure to contribute relative useful content and include your link in your signature. Be sure to read the forums terms of service before posting links in your signature many forums do not allow this.</li>
<li><strong>Blog Posting </strong>Just like forum posting contributing to relevant blogs is a great way to get more traffic. It is especially important to read the blog post and contribute useful relevant content to avoid looking like spam.<strong><br />
</strong></li>
<li><strong>Facebook </strong>Facebook links will not help your SEO efforts all of these links are no-follow and will not be indexed by search engines. However Facebook can be a great way to get relevant traffic to your site. It can also be a great way of starting a conversation about your new product or website.<strong><br />
</strong></li>
<li><strong>Twitter </strong>Building a twitter following is another great way of starting a conversation about your website as well as finding other related sites.<strong><br />
</strong></li>
<li><strong>Articles </strong>Article marketing is one of the most effective ways of building links and getting quality traffic to your site. Writing articles with useful information and submitting them to sites like ezinearticles has many benefits. First of all Google crawls these sites constantly and your content will get picked up very fast. Secondly these articles will often list very high on Google for searches so it&#8217;s a quick way to get free traffic.<strong><br />
</strong></li>
<li><strong>Meta Tags </strong>While setting up meta tags will not have the same effect on SEO it did years ago many search engines including Google still use meta tags.<strong><br />
</strong></li>
<li><strong>Link exchanges </strong>Exchanging links with other sites is a good idea as long as you are exchanging links with sites that are relevant to yours.<strong><br />
</strong></li>
<li><strong>Directories </strong>I have found that directories can either bring you great highly related visitors or do nothing at all. If you can find directories that are popular and related to your niche you can get a flood of great traffic. Directories like dmoz.org and the yahoo directory can be great for link building. Don&#8217;t waste your money on the directories that let in everything and have nothing to do with your site paid or free.<strong><br />
</strong></li>
<li><strong>YouTube </strong>YouTube is actually the second most popular search engine behind Google so it&#8217;s not a bad idea if you can to make some videos that showcase the benefits of your site. It&#8217;s best to just give away free information then link back to your site. People on YouTube don&#8217;t want a commercial.<strong><br />
</strong></li>
<li><strong>RSS Feeds </strong>If you have a blog setting up an RSS feed is essential. A lot of people subscribe to these and come back for every post.<strong><br />
</strong></li>
<li><strong>Social Bookmarking </strong>These sites can be good for getting listed in search engines but they don&#8217;t lead to real visitors very often.<strong><br />
</strong></li>
<li><strong>Press Releases </strong>Only use press releases if what your saying is actually press worthy. News sites will pick up on good stories though.<strong><br />
</strong></li>
<li><strong>Yellow Pages </strong>Listing your business on yellow pages will bring in a lot of local clients as well as give your business a much more reputable appearance.<strong><br />
</strong></li>
<li><strong>Google local business listings </strong>If you have a physical address this is a great way for customers to find you and your website.<strong><br />
</strong></li>
<li><strong>BBB </strong>While I have a personal problem with the BBB .(I find them to be a scam) You can list your business with the BBB to improve reputation.<strong><br />
</strong></li>
<li><strong>Affiliate Programs</strong> An affiliate program is when other people send visitors to you and you pay them a percentage of whatever the visitor buys. <strong><br />
</strong></li>
<li><strong>Craigslist </strong>Great for advertising your products and services. Time consuming if you are not actually serving a local area though.<strong><br />
</strong></li>
<li><strong>Yahoo Answers </strong>While it&#8217;s up for debate whether Google counts these links you can build backlinks by answering questions on yahoo. When your answers are good you can link to your website as a reference for your answer.<strong><br />
</strong></li>
<li><strong>Google groups </strong>Start a Google group or join one about your market.<strong><br />
</strong></li>
<li><strong>Wikipedia </strong>Once you become more popular you can create a Wikipedia entry about your site. This is only for sites with a reputation already.<strong><br />
</strong></li>
<li><strong>Squidoo </strong>Try creating a Squidoo lens for site these make good backlinks as well as give you a reputation as an expert on your topic.<strong><br />
</strong></li>
<li><strong>Digg </strong>This is another great way for your site to get found. If it lands on the front page you can expect a lot of traffic as well.<strong><br />
</strong></li>
<li><strong>Product Reviews </strong>When you have a blog a great way to get new visitors is by reviewing other products and services. People are always looking for reviews of products before they buy them. You can even find out if the product has an affiliate program and try joining it for revenue from your review.<strong><br />
</strong></li>
<li><strong>Amazon </strong>Create a list on Amazon, people will often find these.<strong><br />
</strong></li>
<li><strong>Start a Blog </strong>If you don&#8217;t already have a blog on your site its a good idea to set one up and post often. Just be sure your posts are well thought out and informative. Give people a reason to come back.<strong><br />
</strong></li>
<li><strong>Technorati </strong>If you have a blog list it on Technorati you can find new readers and subscribers with it.<strong><br />
</strong></li>
<li><strong>Rent Links </strong>You can rent links on related websites to get visitors and backlinks. This may not be a good idea for low budget sites though.<strong><br />
</strong></li>
<li><strong>Email Lists </strong>Email lists are a great way to keep your customers updated on new products you have. Email lists can be rented but I recommend sticking with past clients.<strong><br />
</strong></li>
<li><strong>Hold a Contest </strong>Have a contest this will bring in a lot of new visitors.<strong><br />
</strong></li>
<li><strong>Free Stuff </strong>People love free stuff, its a great way to get new leads. Offering a free and paid version of your product can work as well.<strong><br />
</strong></li>
<li><strong>Industry Conferences </strong>Do a search on industry events and conferences in your area this is a great way to network with possible future clients. Be sure to bring plenty of business cards with your website link on them.<strong><br />
</strong></li>
<li><strong>Interview experts </strong>Interview an expert and put it on your website this is great way to build authority.</li>
</ol>
<p><strong>What Not to do!</strong> There are even more ways to screw it up! These are often met with penalties in search engines.</p>
<ol>
<li><strong>Spam Forums </strong>Posting unrelated and uninformative posts on forums will often get you banned it is always frowned upon. Try to be helpful on forums and you will gain peoples trust much better.</li>
<li><strong>Spam Blogs </strong>Don&#8217;t spam blogs there usually just deleted.</li>
<li><strong>Email spam </strong>Never spam people by email not only will they not want to buy your product but it will completely devalue your reputation.</li>
</ol>
<p><strong>In conclusion</strong>, focus on your content, when you are selling a product that people want they will find you. Just be sure to make yourself well known in your market and provide good content.</p>
]]></content:encoded>
			<wfw:commentRss>http://benlonchar.com/blog/the-best-ways-to-get-traffic-to-your-website/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

