<?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>Jason Rowe &#187; MySql</title>
	<atom:link href="http://jasonrowe.com/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://jasonrowe.com</link>
	<description>digging into the details</description>
	<lastBuildDate>Sun, 14 Mar 2010 02:00:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>jquery taskwidget module</title>
		<link>http://jasonrowe.com/2008/09/07/building-a-taskwidget-with-jquery-php-and-mysql/</link>
		<comments>http://jasonrowe.com/2008/09/07/building-a-taskwidget-with-jquery-php-and-mysql/#comments</comments>
		<pubDate>Sun, 07 Sep 2008 22:40:00 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[taskwidget]]></category>

		<guid isPermaLink="false">http://rowejason.com/?p=140</guid>
		<description><![CDATA[I started building a simple taskwidget to try out jquery.  It&#8217;s not much but a simple AJAX application using PHP and mysql on the backend. Here a some of the cool things I learned along the way.
A common gotcha with JavaScript is access to &#8220;this&#8221; inside callbacks and functions.  For example, $.get has a callback [...]]]></description>
			<content:encoded><![CDATA[<p>I started building a simple <a href="http://rowejason.com/taskwidget/">taskwidget</a> to try out <a href="http://jquery.com/">jquery</a>.  It&#8217;s not much but a simple AJAX application using PHP and mysql on the backend. Here a some of the cool things I learned along the way.</p>
<p>A common gotcha with JavaScript is access to &#8220;this&#8221; inside callbacks and functions.  For example, $.get has a callback but inside the callback &#8220;this&#8221; is out of scope.  So if you need to use a function in the object that contains the $.get define a local variable and set the value  equal to &#8220;this&#8221;. Here is a quick example of this scenario. Once you are done with the callback the local instance variable of &#8220;this&#8221; will get cleaned up by garbage collection.</p>
<pre class="brush: js; ">

var foo = this;

$.get(&quot;test.php&quot;, function(data){

//this is out of scope in this callback
alert(&quot;Data Loaded: &quot; + data);

//but foo is now = this

foo.sendDataSomeWhereElse(data)

});
</pre>
<p>On the PHP backend I found a nice <a href="http://www.ricocheting.com/scripts/php_mysql_wrapper.php">mysql wrapper class </a>. It makes it simple to organize MySQL connection and queries.  You can do things like this to connect to your database using a simple config file.</p>
<pre class="brush: php; ">

$db = new Database($config[&#039;server&#039;], $config[&#039;user&#039;], $config[&#039;pass&#039;], $config[&#039;database&#039;], $config[&#039;tablePrefix&#039;]);
</pre>
<p>Then a function would look like this:</p>
<pre class="brush: php; ">

$db-&gt;connect();

$sql = &quot;insert into tmastertask (masterTaskDescription) VALUES (&#039;&quot; . $values[0] . &quot;&#039;);&quot;;

$db-&gt;query($sql);

$jsonInsertArray[] = &quot;success&quot;;
$jsonResultArray[&quot;InsertResult&quot;]=$jsonInsertArray;
echo json_encode($jsonResultArray);

$db-&gt;close();
</pre>
<hr />
<p><small>&copy; admin for <a href="http://jasonrowe.com">Jason Rowe</a>, 2008. |
<a href="http://jasonrowe.com/2008/09/07/building-a-taskwidget-with-jquery-php-and-mysql/">Permalink</a> |
<a href="http://jasonrowe.com/2008/09/07/building-a-taskwidget-with-jquery-php-and-mysql/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://jasonrowe.com/2008/09/07/building-a-taskwidget-with-jquery-php-and-mysql/&amp;title=jquery taskwidget module">del.icio.us</a>
<br/>
Post tags: <a href="http://jasonrowe.com/tag/jquery/" rel="tag">JQuery</a>, <a href="http://jasonrowe.com/tag/mysql/" rel="tag">MySql</a>, <a href="http://jasonrowe.com/tag/php/" rel="tag">PHP</a>, <a href="http://jasonrowe.com/tag/taskwidget/" rel="tag">taskwidget</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://jasonrowe.com/2008/09/07/building-a-taskwidget-with-jquery-php-and-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Hosts Can Be A Joke!</title>
		<link>http://jasonrowe.com/2007/10/27/php-hosts-can-be-a-joke/</link>
		<comments>http://jasonrowe.com/2007/10/27/php-hosts-can-be-a-joke/#comments</comments>
		<pubDate>Sat, 27 Oct 2007 02:52:00 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://rowejason.com/?p=101</guid>
		<description><![CDATA[Update &#8211; 6/16/2009 &#8211; Since writting this review of byte host I have found their service to be horrible. They are cheap but you get what you pay for. Go Daddy has recently updated their PHP version which now makes it a great platform again.
While searching for a PHP host I found support people and [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update &#8211; 6/16/2009</strong> &#8211; Since writting this review of byte host I have found their service to be horrible. They are cheap but you get what you pay for. Go Daddy has recently updated their PHP version which now makes it a great platform again.</p>
<p>While searching for a PHP host I found support people and marketing information completely useless. The best way to go about it is getting a free account and immediately running phpinfo to find out what they have installed because most of the time they have no idea. It got funny reading the marketing information and then finding out that the last time they complied the PHP kernal or installed it was around the windows 95 release. I won&#8217;t name names (cough &#8220;godaddy.com&#8221; cough) but anyway back to my point.. I actually use godaddy for this site as its just html and javascript and its actually very reliable but using it for a php site with JSON and XML support was not possible.</p>
<p>The trouble comes when you want to get into working with AJAX and web 2.0 features. Most hosts just don&#8217;t know customers needs and have no idea how to fix issues. Many times I tried calling customer support and asking why the phpinfo page did not match the marketing page but I couldn&#8217;t find a knowledgeable person to help me troubleshoot the issue.</p>
<p><strong><span style="font-size: 20px">Luckily, I found an amazing PHP host.</span></strong> Here are some reasons why they fit my needs as of 10/27/2007:</p>
<ul>
<li>cPanel X &#8211; fully featured web hosting control panel system. With good documentation sprinkled in.</li>
<li>PHP version 5.2.4 &#8211; As for specifically PHP 5.2.x &#8211; many changes were introduced from ver 5.1.0 to 5.2.0 &#8211; there&#8217;s even a migration documentation from 5.1.0 to 5.2.0 ! One of the major additions are the JSON and ZIP (using zlib). The JSON extension bridges a big gap &#8211; you can now create javascript JSON variables directly from php arrays !</li>
<li>MySQL version 5.0.27-standard</li>
<li>Apache version 2.2.6 (Unix) &#8211; has a whole lot more to offer than Apache 1.3. But the only thing I&#8217;m interested in is the RegExp part of mod_rewrite which offers more pattern syntax characters like ? (extends the meaning of) character.</li>
</ul>
<p>The PHP 5 was configured to work with JSON, XML, and MySql. I didn&#8217;t have one question and all the latest php modules worked without a problem. One thing to note is the free account does not support mysql remote connections. Once you sign up for the payed plan starting at $2.99 the mysql and remote connections all come to life with all the admin page goodies! I get no refer bonus or anything. I just like to give credit where credit is due. Good job byethost. <a href="http://byethost.com/freeplans.php">http://byethost.com/freeplans.php</a>.<br />
<a href="http://byethost.com/"></a><a href="http://byethost.com/"><img src="http://byethost.com/images/LeftTop.gif" alt="Byethost Free Hosting" style="width: 180px; height: 130px; border: 0px solid" /></a></p>
<p>Good Luck and Happy Coding,<br />
Jason</p>
<hr />
<p><small>&copy; admin for <a href="http://jasonrowe.com">Jason Rowe</a>, 2007. |
<a href="http://jasonrowe.com/2007/10/27/php-hosts-can-be-a-joke/">Permalink</a> |
<a href="http://jasonrowe.com/2007/10/27/php-hosts-can-be-a-joke/#comments">2 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://jasonrowe.com/2007/10/27/php-hosts-can-be-a-joke/&amp;title=PHP Hosts Can Be A Joke!">del.icio.us</a>
<br/>
Post tags: <a href="http://jasonrowe.com/tag/php/" rel="tag">PHP</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://jasonrowe.com/2007/10/27/php-hosts-can-be-a-joke/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>my latest yui php mysql project</title>
		<link>http://jasonrowe.com/2007/10/03/my-latest-yui-php-mysql-project/</link>
		<comments>http://jasonrowe.com/2007/10/03/my-latest-yui-php-mysql-project/#comments</comments>
		<pubDate>Wed, 03 Oct 2007 19:07:00 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[YUI]]></category>

		<guid isPermaLink="false">http://rowejason.com/?p=99</guid>
		<description><![CDATA[I setup a quick demo page showing how to use a combination of many things I have wrote about on my blog. Take a look if you want to see how easily you can do some cool things with YUI (update &#8211; and jquery).
http://jasonrowe.com/search
update 5/08/09 - I change some of the javascript from yui to jquery. I [...]]]></description>
			<content:encoded><![CDATA[<p>I setup a quick demo page showing how to use a combination of many things I have wrote about on my blog. Take a look if you want to see how easily you can do some cool things with YUI (update &#8211; and jquery).<br />
<a href="http://jasonrowe.com/search">http://jasonrowe.com/search</a></p>
<p>update 5/08/09 - I change some of the javascript from yui to jquery. I converted the old YUI carousel to Jcarousel.(<a href="http://sorgalla.com/projects/jcarousel/">http://sorgalla.com/projects/jcarousel/</a>)</p>
<hr />
<p><small>&copy; admin for <a href="http://jasonrowe.com">Jason Rowe</a>, 2007. |
<a href="http://jasonrowe.com/2007/10/03/my-latest-yui-php-mysql-project/">Permalink</a> |
<a href="http://jasonrowe.com/2007/10/03/my-latest-yui-php-mysql-project/#comments">3 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://jasonrowe.com/2007/10/03/my-latest-yui-php-mysql-project/&amp;title=my latest yui php mysql project">del.icio.us</a>
<br/>
Post tags: <a href="http://jasonrowe.com/tag/jquery/" rel="tag">JQuery</a>, <a href="http://jasonrowe.com/tag/mysql/" rel="tag">MySql</a>, <a href="http://jasonrowe.com/tag/php/" rel="tag">PHP</a>, <a href="http://jasonrowe.com/tag/yui/" rel="tag">YUI</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://jasonrowe.com/2007/10/03/my-latest-yui-php-mysql-project/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>PHP MySql Setup</title>
		<link>http://jasonrowe.com/2007/08/07/php-mysql-setup/</link>
		<comments>http://jasonrowe.com/2007/08/07/php-mysql-setup/#comments</comments>
		<pubDate>Tue, 07 Aug 2007 04:28:00 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://rowejason.com/?p=98</guid>
		<description><![CDATA[Here is my idiots guid to working with PHP 5, MySql, and Apache on a windows server.
This assumes you have downloaded all of the above mentioned apps and have them installed. If not you can get them here: (PHP , MySQL)
Configure PHP 5 to start talking to MySql.
UPDATE with php 5.2.6 and Apache 2.2 I [...]]]></description>
			<content:encoded><![CDATA[<p>Here is my idiots guid to working with PHP 5, MySql, and Apache on a windows server.</p>
<p>This assumes you have downloaded all of the above mentioned apps and have them installed. If not you can get them here: (<a href="http://www.php.net/downloads.php">PHP </a>, <a href="http://dev.mysql.com/downloads/">MySQL</a>)</p>
<p><strong>Configure PHP 5 to start talking to MySql.</strong></p>
<p>UPDATE with php 5.2.6 and Apache 2.2 I had to use these instructions &#8211; <a href="http://www.php.ph/2008/07/16/windows-installing-php-526-on-apache-229-manually/">http://www.php.ph/2008/07/16/windows-installing-php-526-on-apache-229-manually/</a></p>
<ol>
<li>open your php.ini file because you have to add a few entries. (example C:\php\php.ini)</li>
<li>Once open search for Windows Extensions</li>
<li>Then add this line &#8220;extension=php_mysql.dll &#8221; after it and do not put the ignore &#8220;;&#8221; in front of it like the others that might already be in the config</li>
<li>While in the php.ini file search for &#8220;extension_dir&#8221; and make sure it has a correct path. (example:extension_dir = &#8220;c:\php\ext&#8221;)</li>
<li>Double check that mysql is running in your services.</li>
<li>Restart Apache and check the <a href="http://us2.php.net/phpinfo">phpinfo() </a>page to make sure you now have a mysql section before moving on to the next steps.</li>
<li>Restart apache</li>
<li>Now setup a test php script page with the following</li>
</ol>
<pre class="brush: php; ">

&lt; ?php // we connect to example.com and port 3306 which is the default

$link = mysql_connect(&#039;localhost:3306&#039;, &#039;root&#039;, &#039;password&#039;);

if (!$link) { die(&#039;Could not connect: &#039; . mysql_error()); }

echo &#039;Connected successfully&#039;; mysql_close($link);
</pre>
<p>Hopefully you get the following response on the page when you view it. &#8220;Connected successfully&#8221;</p>
<p>Troubleshooting Tips:</p>
<ul>
<li>You can use telnet to see if the service is running. start &gt; run &gt; telnet localhost 3306 should give you some sort of response.</li>
<li>Check (C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf) for the following entries : PHPIniDir &#8220;C:/PHP/&#8221; and LoadModule php5_module &#8220;C:/PHP/php5apache2_2.dll&#8221;</li>
<hr />
<p><small>&copy; admin for <a href="http://jasonrowe.com">Jason Rowe</a>, 2007. |
<a href="http://jasonrowe.com/2007/08/07/php-mysql-setup/">Permalink</a> |
<a href="http://jasonrowe.com/2007/08/07/php-mysql-setup/#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://jasonrowe.com/2007/08/07/php-mysql-setup/&amp;title=PHP MySql Setup">del.icio.us</a>
<br/>
Post tags: <a href="http://jasonrowe.com/tag/mysql/" rel="tag">MySql</a>, <a href="http://jasonrowe.com/tag/php/" rel="tag">PHP</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://jasonrowe.com/2007/08/07/php-mysql-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
