<?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>The Infinite Loop - Beginner&#039;s SEO, Beginner C# &#38; JQuery Tutorials &#187; Programming</title>
	<atom:link href="http://theinfiniteloopblog.com/tag/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://theinfiniteloopblog.com</link>
	<description>Problem. Problem Solved. Loop. - The life of a programmer</description>
	<lastBuildDate>Wed, 17 Aug 2011 15:29:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Paging in PHP &#8211; PHP Paging Tutorial</title>
		<link>http://theinfiniteloopblog.com/programming/php/paging-in-php-php-paging-tutorial/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=paging-in-php-php-paging-tutorial</link>
		<comments>http://theinfiniteloopblog.com/programming/php/paging-in-php-php-paging-tutorial/#comments</comments>
		<pubDate>Sun, 30 May 2010 01:56:07 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[beginner css]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css layout]]></category>
		<category><![CDATA[css techniques]]></category>
		<category><![CDATA[css tricks]]></category>
		<category><![CDATA[custom php paging]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[tableless design]]></category>
		<category><![CDATA[tableless layout]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://theinfiniteloopblog.com/?p=381</guid>
		<description><![CDATA[<strong>Paging in php and automatic pagination</strong> is something every coder has to deal with when coding in php. I mean, you COULD show all results on 1 page and skip the php paging, but paging is necessary to reduce bandwidth and organize content. Paging is very easy to do and I will walk you through it step by step. 
]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<h2 style="font-size:8pt;">PHP Paging &amp; Automatic Pagination Tutorial - Paging made easy</h2>
<p>I have written a <strong>php paging tutorial</strong> before. Admittedly, it wasn't the greatest. I don't think I was as clear as I wanted to be. SO I'm trying again. <img src='http://theinfiniteloopblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  At the end of this tutorial, there is a file named <b>php-automatic-pagination.php.txt</b><br />
Please download it! It will help you understand the following.</p>
<p>Here is what we will be making..nice, simple pagers! (Dont worry about the Image #x text, thats really not part of the tutorial)<br />
<a href="http://theinfiniteloopblog.com/wp-content/uploads/2010/05/php-automatic-pagination.jpg" target="_blank"><img src="http://theinfiniteloopblog.com/wp-content/uploads/2010/05/php-automatic-pagination-300x141.jpg" alt="PHP Automatic Pagination/Simple PHP Paging Tutorial" title="php-automatic-pagination" width="300" height="141" class="alignnone size-medium wp-image-400" /></a></p>
<p><strong>Paging in php and automatic pagination</strong> is something every coder has to deal with when coding in php. I mean, you COULD show all results on 1 page and skip the php paging, but paging is necessary to reduce bandwidth and organize content. Paging is very easy to do and I will walk you through it step by step. </p>
<p>PHP automatic paging comes with a few questions:<br />
Paging 1 : Page Size - How many results would you like to display per page?<br />
Paging 2 : How can we bring back proper results in mysql?<br />
Paging 3 : How can we print a pager that will help show the next items.</p>
<p>Decide on your page size - 10, 15, 25, 50, 100. It really depends on what you would like to do.  For this tutorial I will use 15.</p>
<p class="comment">//we want 15 results per page</p>
<p>$pgsize=15; </p>
<p class="comment">//if there is a p variable in the query string e.g: page.php?p=5 we will get this value, else we will use 1 (page 1)</p>
<p>$pg=(is_numeric($_GET["p"]) ? $_GET["p"] : 1); </p>
<p class="comment">//lets determine where we would like to get results from<br />
//if $pg is 1, this calculation results in 0 (we want to start from the first record in the database)<br />
//if $pg is 2, this calculation will result in 1*15..which means we will start at the 15th index of the database (row 16)</p>
<p>$start=($pg-1)*$pgsize; </p>
<p class="comment">//let us query the database for our results<br />
//you will notice LIMIT and $start and $pgsize.<br />
//On page 1, this query will be SELECT * FROM image_table LIMIT 0,15  - this means return 15 rows starting at row-index 0 (row 1)<br />
//On page 2, this query will be SELECT * FROM image_table LIMIT 15, 15 - this means we will return 15 rows starting at row-index 15 (row 16)<br />
//On page 3, this query will be SELECT * FROM image_table LIMIT 30,15 - this means we will return 15 rows starting at row-index 30 (row 31)<br />
GET IT?!?!?!</p>
<p>$imgs=mysql_query("SELECT * FROM image_table LIMIT $start, $pgsize");</p>
<p class="comment">//we will also need the total number of records in our table<br />
//notice there is no limit? we want to know how many records are in the entire table!<br />
//we can use COUNT(*), COUNT(1), or COUNT(fieldname), they will all return the same result</p>
<p>$img_total=mysql_query("SELECT COUNT(1) FROM image_table");</p>
<p class="comment">//mysql_query returns a resource id, we can use this to get the row it has returned</p>
<p>$img_total=mysql_fetch_row($img_total);</p>
<p class="comment">//the count will be the first field in this row</p>
<p>$img_total=$img_total[0];</p>
<p class="comment">//lets determine how many pages we will need<br />
 //WRONG!, this will cut off results..why?<br />
//say we have 31 images, and our page size is 15. 31/15= ~2.x...We need to round this result up!</p>
<p>$max_pages=$img_total / $pgsize; </p>
<p class="comment">//use this line instead</p>
<p>$max_pages=ceil($img_total/$pgsize);</p>
<p>Once we have all this information, we can use a handy little function I have written named printPager. This function will print out a neat little pager. It uses a helper function named add_querystring_var which was from Added Bytes here:<br />
<a href="http://www.addedbytes.com/code/querystring-functions/">http://www.addedbytes.com/code/querystring-functions/</a></p>
<p>Copy/paste this function into your page or into one of your includes:<br />
This will print out your awesome little pager! <img src='http://theinfiniteloopblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2 style="font-size:1em;">PHP Automatic Pagination Function</h2>
<div style="font-size:0.9em;">
function printPager($max_pages,$pg){<br />
	print '&lt;div class="clear"&gt;&lt;/div&gt;';<br />
	print '&lt;ul class="pager"&gt;';<br />
	$i=1;<br />
	if($pg!=1){<br />
		$url=$_SERVER["SCRIPT_NAME"];<br />
		$url.=add_querystring_var("?".$_SERVER["QUERY_STRING"], "p", $pg-1);<br />
		print '&lt;li class="prev"&gt;&lt;a href="'.$url.'"&gt;&lt;&lt;&lt;/a&gt;&lt;/li&gt;';<br />
	}</p>
<p>	while($i&lt;=$max_pages){<br />
		$url=$_SERVER["SCRIPT_NAME"];<br />
		$url.=add_querystring_var("?".$_SERVER["QUERY_STRING"], "p", $i);</p>
<p>		if($pg==$i){<br />
			print '&lt;li class="current"&gt;';<br />
			print '&lt;span&gt;'.$i.'&lt;/span&gt;';<br />
			print "&lt;/li&gt;";<br />
		}else{<br />
			print "&lt;li&gt;";<br />
			print '&lt;a href="'.$url.'"&gt;'.$i.'&lt;/a&gt;';<br />
			print "&lt;/li&gt;";<br />
		}</p>
<p>		$i++;<br />
	}</p>
<p>	if($pg!=$max_pages){<br />
		$url=$_SERVER["SCRIPT_NAME"];<br />
		$url.=add_querystring_var("?".$_SERVER["QUERY_STRING"], "p", $pg+1);<br />
		print '&lt;li class="next"&gt;&lt;a href="'.$url.'"&gt;&gt;&gt;&lt;/a&gt;';<br />
	}<br />
	print '&lt;/ul&gt;';<br />
	print '&lt;div class="clear"&gt;&lt;/div&gt;';<br />
}</p>
<p>function add_querystring_var($url, $key, $value) { $url = preg_replace('/(.*)(\?|&#038;)' . $key . '=[^&#038;]+?(&#038;)(.*)/i', '$1$2$4', $url . '&#038;'); $url = substr($url, 0, -1); if (strpos($url, '?') === false) { return ($url . '?' . $key . '=' . $value); } else { return ($url . '&#038;' . $key . '=' . $value); } }
</p></div>
<p>Print Pager is called like so:<br />
<?php printPager($max_pages, $pg); ?></p>
<h2 style="font-size:1em;">PHP Pager Styles</h2>
<div style="font-size:0.9em;">
We can style this pager using the following:<br />
/*pagers*/</p>
<p>div.clear{clear:both;}<br />
/spacing between numbers and sizes<br />
ul.pager li {<br />
	float:left;<br />
	margin-right:5px;<br />
	font-size:8pt;<br />
	padding: 2px 5px 2px 5px;<br />
}</p>
<p>//link color<br />
ul.pager li a{<br />
	color:red;<br />
}</p>
<p>//link hover style<br />
ul.pager li a:hover{<br />
	text-decoration:underline;<br />
	color:red;<br />
}</p>
<p>//current page styling<br />
ul.pager li.current span{<br />
	color:red;<br />
}</p>
<p>//previous and next stylings<br />
ul.pager li.prev, ul.pager li.next{</p>
<p>}
</p></div>
<p>Download this tutorials script! It will help you understand. Right click: <a href='http://theinfiniteloopblog.com/wp-content/uploads/2010/05/php-automatic-pagination-tutorial.php.txt'>php-automatic-pagination-tutorial.php</a> and click Save as. Then get rid of the .txt extension and name it php if you would like to run it. You will need to setup a database table to use for the tutorial. It can have an id field and another field.</p>
<p>If you enjoyed this post please leave a comment! I like reading and responding to all my readers!<br />
Thanks</p>
<p><a href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=aburningflame-"><img src="http://tracking.hostgator.com/img/Green/468x60.gif" border=0></a><br />
<strong>Use HostGator 2010 Coupon Code: <em>994offhgpackage</em> for $9.94 off your first month!<br />
(First month will cost $0.01)</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://theinfiniteloopblog.com/programming/php/paging-in-php-php-paging-tutorial/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Rounded Corners Using CSS Technique</title>
		<link>http://theinfiniteloopblog.com/xhtmlcss/rounded-corners-using-css-technique/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rounded-corners-using-css-technique</link>
		<comments>http://theinfiniteloopblog.com/xhtmlcss/rounded-corners-using-css-technique/#comments</comments>
		<pubDate>Thu, 07 May 2009 10:51:01 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[XHTML/CSS]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css techniques]]></category>
		<category><![CDATA[css tricks]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://scottmoniz.com/programmingBlog/?p=82</guid>
		<description><![CDATA[This is a neat lil trick, that doesnt take to long to do, but makes a site look that much more professional. It works across browsers, and is used quite often. It may become obsolete once IE and other browsers decide to support the new set of CSS3 specs. Until then this is a good [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p>This is a neat lil trick, that doesnt take to long to do, but makes a site look that much more professional.<br />
It works across browsers, and is used quite often.<br />
It may become obsolete once IE and other browsers decide to support the new set of CSS3 specs. Until then this is a good technique to depend on. If designing for Mozilla based browsers, there is a css property in the making named border-radius.<br />
-moz-border-radius will allow you to set a rounded border on any block object.</p>
<p>This technique however, involves using 4 images and 3 divs.<br />
Here are the images we will be using:</p>
<p><img class="alignleft size-full wp-image-83" title="tl" src="http://coulditgetworse.com/theinfiniteloopblog/wp-content/uploads/2009/05/tl.gif" alt="tl" width="16" height="16" />Top Left<br />
<img class="alignleft size-full wp-image-86" title="tr1" src="http://coulditgetworse.com/theinfiniteloopblog/wp-content/uploads/2009/05/tr1.gif" alt="tr1" width="16" height="16" />Top Right</p>
<p><img class="alignleft size-full wp-image-85" title="bl" src="http://coulditgetworse.com/theinfiniteloopblog/wp-content/uploads/2009/05/bl.gif" alt="bl" width="16" height="16" />Bottom Left<br />
<img class="alignleft size-full wp-image-88" title="br" src="http://coulditgetworse.com/theinfiniteloopblog/wp-content/uploads/2009/05/br.gif" alt="br" width="16" height="16" />Bottom Right</p>
<p><strong>Open up notepad, or notepad++, or whichever editor you use.<br />
Type</strong></p>
<p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Rounded Corner Tutorial&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;body&gt;<br />
&lt;html&gt;</p>
<p><strong>In the head section add:</strong><br />
&lt;style&gt;<br />
body{background-color: #e0e0e0;} //these are zeros not o's<br />
&lt;/style&gt;</p>
<p>Save as .html and view it in your browser. You should have a gray page.<br />
<strong>Now, between your body tags type this</strong></p>
<p>&lt;div id="roundDiv"&gt;<br />
This is the content<br />
&lt;/div&gt;</p>
<p><strong>And add this to your style definition</strong><br />
#roundDiv{background-color: white; width: 800px;}</p>
<p>Now, previewing in browser you should see a gray page with a white div containing the words "this is content".</p>
<p>We are going to add a div to roundDiv. Since this is the first item in round div, it starts at the top left corner.<br />
In this top div, we will add the image for the top left corner.<br />
<strong>Add this to roundDiv <em>Before</em> "this is content"</strong><br />
&lt;div class="roundTop"&gt;&lt;img src="tl.gif" class="corner"/&gt;&lt;/div&gt;</p>
<p>After this line would come the content.<br />
<strong>Add this to roundDiv <em>After</em> "this is content"</strong><br />
This holds your bottom left image</p>
<p>&lt;div class="roundBot"&gt;&lt;img src="bl.gif" class="corner"/&gt;&lt;/div&gt;</p>
<p><strong>Now, between your style tags add this definition</strong><br />
.corner{display: block; width: 16px; height: 16px;} //use your actual values here, for this example our images are 16x16</p>
<p><strong>So far our html page should look like this:</strong></p>
<p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;style&gt;<br />
body{background-color: #e0e0e0;}<br />
#roundDiv{width: 800px; background-color: white;}<br />
.corner{display: block; width: 16px; height: 16px;}<br />
&lt;/style&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;div id="roundDiv"&gt;<br />
&lt;div class="roundTop"&gt;&lt;img src="tl.gif" class="corner"/&gt;&lt;/div&gt;<br />
This is content<br />
&lt;div class="roundBot"&gt;&lt;img src="bl.gif" class="corner"/&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>If you preview this in your browser you should see a white div, with rounded corners on the left side.<br />
This in itself is a neat div and you don't have to add the right corners. This effect is good in itself.</p>
<p>To get the rounded corners we really want, we are gonna set a background image on the top and bottom divs.<br />
We will set a background image url, set it to not repeat/tile, and set its position accordingly.</p>
<p><strong>To your style tags add this definition for the top right corner</strong><br />
.roundTop{<br />
background-image: url('tr.gif');<br />
background-repeat: no-repeat;<br />
background-position: top right; // specify to align top, and to the right of the div<br />
}</p>
<p><strong>Now for the bottom right corner</strong><br />
.roundBottom{<br />
background-image: url('br.gif');<br />
background-repeat: no-repeat;<br />
background-position: bottom right; // specify to align bottom, and to the right of the div<br />
}<br />
<strong>Your entire html file should look like this:</strong></p>
<p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;style&gt;<br />
body{background-color: #e0e0e0;}<br />
#roundDiv{width: 800px; background-color: white;}<br />
.corner{display: block; width: 16px; height: 16px;}<br />
.roundTop{<br />
background-image: url('tr.gif');<br />
background-repeat: no-repeat;<br />
background-position: top right; // specify to align top, and to the right of the div<br />
}<br />
.roundBot{<br />
background-image: url('br.gif');<br />
background-repeat: no-repeat;<br />
background-position: bottom right; // specify to align top, and to the right of the div<br />
}<br />
&lt;/style&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;div id="roundDiv"&gt;<br />
&lt;div class="roundTop"&gt;&lt;img src="tl.gif" class="corner"/&gt;&lt;/div&gt;<br />
This is content<br />
&lt;div class="roundBot"&gt;&lt;img src="bl.gif" class="corner"/&gt;&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>This is the result (low-quality pic):<br />
<img class="aligncenter size-full wp-image-102" title="final1" src="http://coulditgetworse.com/theinfiniteloopblog/wp-content/uploads/2009/05/final1.jpg" alt="final1" width="815" height="62" /></p>
<p>And there you have it, easy rounded corners!</p>
<p><!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://theinfiniteloopblog.com/xhtmlcss/rounded-corners-using-css-technique/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing and Configuring MySql/Connecting with C#</title>
		<link>http://theinfiniteloopblog.com/dbs/mysql/installing-and-configuring-mysqlconnecting-with-c/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=installing-and-configuring-mysqlconnecting-with-c</link>
		<comments>http://theinfiniteloopblog.com/dbs/mysql/installing-and-configuring-mysqlconnecting-with-c/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 05:26:06 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[c sharp]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://scottmoniz.com/programmingBlog/?p=42</guid>
		<description><![CDATA[Recently, I was asked to do some C# development with MySQL as the backend. Having C# with SQL Server 2005 development under my belt setting up a connection to a MySQL Server was pretty easy, however, I will walk you through the setup. Two packages you will need are the MySQL Essentials Installer(this installs the [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p>Recently, I was asked to do some C# development with MySQL as the backend.<br />
Having C# with SQL Server 2005 development under my belt setting up a connection to a MySQL Server was pretty easy, however, I will walk you through the setup.</p>
<p>Two packages you will need are the MySQL Essentials Installer(this installs the server)<br />
and the MySQL Connecter/.NET Installer(this installs the bridge between MySQL and .NET)<br />
The third package, the GUI tools, is optional, but it is a lot easier to work with. (Think of it as a Management Studio Express, for those of you who have used SQL 2005)</p>
<p>MySQL Essentials Package: <a title="http://dev.mysql.com/downloads/mysql/5.1.html#downloads" href="http://dev.mysql.com/downloads/mysql/5.1.html#downloads" target="_blank">http://dev.mysql.com/downloads/mysql/5.1.html#downloads<br />
</a>MySqlConnector/NET: <a title="http://www.mysql.com/products/connector/net/" href="http://www.mysql.com/products/connector/net/" target="_blank">http://www.mysql.com/products/connector/net/</a><br />
MySQL Gui Tools: <a title="http://dev.mysql.com/downloads/gui-tools/5.0.html" href="http://dev.mysql.com/downloads/gui-tools/5.0.html" target="_blank">http://dev.mysql.com/downloads/gui-tools/5.0.html</a></p>
<p>Run the Essentials Package first, this package actually contains the server instance.<br />
Follow the prompts, they are pretty much straight forward.<br />
When you receive the prompt about your root password, pick a password.</p>
<p>Next install the MySQL Connector.<br />
Follow the prompts, they are pretty much straight forward as well, and should install pretty quickly.</p>
<p>From here, you can use the command line client located in Start&gt;Program Files&gt;MySql Version&gt;MySql Command Line Client, however, I choose to use the GUI tools instead.<br />
If you have not already, launch the GUI tools installer.</p>
<p>Once this is done, go to Start&gt;Program Files&gt;MySql Version#&gt;MySQL query browser<br />
Click the  ... button next to Stored Connection.<br />
Click New Connection.</p>
<p>Fill out the properties<br />
Connection: Name the connection<br />
Username: root<br />
Password: password used during setup<br />
Hostname: localhost<br />
Port: default is 3306<br />
Schema: specify the default database, you can leave this blank.</p>
<p>Click apply and close.<br />
In the connection screen, from the dropdown, pick the connection we just created.<br />
Type your password.<br />
If given a warning about a default schema, type  test or default in the Default Schema field, this will create<br />
a database named test or default. You can always delete this dummy database afterwards.</p>
<p>To create tables right click your database in the Schemata and click Create New Table.<br />
Most of the GUI is intuitive and should be picked up quite easy.</p>
<p><strong>Connecting to MySQL using C#</strong></p>
<p>Start a C# Application project (I'm using a Console App in my example)<br />
Right click your project and click Add Reference.<br />
Navigate to the Connector DLL.<br />
By default this dll is located at C:/Program Files/MySql/MySql Connector .NET Version#/Binaries/.NET 2.0/MySql.Data.dll</p>
<p>Once this is added add the line:<br />
using MySql.Data.MySqlClient;<br />
using System.Data; //for the ConnectionState enum<br />
to the top of your code.</p>
<p>Add this code to your main/load method:</p>
<p>//sets up the connection string<br />
string connString = "Server = localhost; Database = databaseName; Uid = root; Pwd = pass;";<br />
//creates a new MySqlConnection object<br />
MySqlConnection conn = new MySqlConnection(connString);</p>
<p>try{<br />
//try to open the connection, catch any exceptions<br />
conn.Open();<br />
//if the connection succeeds, print a msg<br />
Console.WriteLine("Connection Succeeded");<br />
}catch(Exception ex){<br />
//print that the connection failed, and the associated Message<br />
Console.WriteLine("Connection Failed: "+ex.Message);<br />
}finally{<br />
//if the connection is currently open, close it<br />
if(conn.State==ConnectionState.Open)<br />
conn.Close();<br />
}</p>
<p><strong>Troubleshooting:</strong></p>
<ul>
<li>If you are having trouble connecting, check your username and password.</li>
<li>Double check the connection string.</li>
<li>If you are sure the above is correct, make sure the MySql server instance is running. You can do this by</li>
<li>going to Start&gt;Run. Type services.msc and hit Ok. Scroll down the list to MySql, it should say started. If it does not, right click and hit Start.</li>
<li>Try to connect with the MySql GUI tools.</li>
</ul>
<p>Just about everything you can do with SQL Server you can do with MySql using the familiarly named classes:<br />
MySqlConnection, MySqlCommand, MySqlDataReader</p>
<p>Hope this gets you started on using MySql and C#.<br />
Any questions or comments, feel free to ask.</p>
]]></content:encoded>
			<wfw:commentRss>http://theinfiniteloopblog.com/dbs/mysql/installing-and-configuring-mysqlconnecting-with-c/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Programming</title>
		<link>http://theinfiniteloopblog.com/gen/programming/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=programming</link>
		<comments>http://theinfiniteloopblog.com/gen/programming/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 16:19:03 +0000</pubDate>
		<dc:creator>Scott</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://scottmoniz.com/programmingBlog/?p=4</guid>
		<description><![CDATA[Today is grad day, last day of school, and out of all the technologies I've learned in the 3 years I've been in college, PHP was my favorite.ASP.NET, JSP/Servlets just seem to bulky. PHP was so lightweight, easy to understand and extremely simple. It's open source model was nice to see to, everywhere on the [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p>Today is grad day, last day of school, and out of all the technologies I've learned in the 3 years I've been in college, PHP was my favorite.ASP.NET, JSP/Servlets just seem to bulky. PHP was so lightweight, easy to understand and extremely simple. It's open source model was nice to see to, everywhere on the net there was reusable code and components WITH NO RESTRICTIONS.</p>
<p>At the moment my job is an ASP.NET job, however, I have a big PHP job lined up in a couple months.<br />
We redeveloped an existing system and came in 1st in a competition against 7 other teams! So, we're being brought onto the project.</p>
<p>What are your thoughts on the different development languages?<br />
ASP.NET, JSP with servlets, PHP...which do you prefer and why?</p>
]]></content:encoded>
			<wfw:commentRss>http://theinfiniteloopblog.com/gen/programming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

