<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for JOEZACK.COM</title>
	<atom:link href="http://joezack.com/index.php" rel="self" type="application/rss+xml" />
	<link>http://joezack.com</link>
	<description>Code Musings and Such</description>
	<lastBuildDate>Wed, 22 Feb 2012 21:59:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>Comment on MySQL Capitalize Function by me</title>
		<link>http://joezack.com/index.php/2008/10/20/mysql-capitalize-function/comment-page-1/#comment-1358</link>
		<dc:creator>me</dc:creator>
		<pubDate>Wed, 22 Feb 2012 21:59:19 +0000</pubDate>
		<guid isPermaLink="false">http://joezack.com/?p=137#comment-1358</guid>
		<description>No problem, @Alex D

All you have to do is modify the arguments to take in a length:

CREATE FUNCTION CAP_FIRST (input VARCHAR(255), maxLength int)

and then add an if:
IF LENGTH(InputString) &gt; maxLength THEN
   SET InputString = CONCAT(	LEFT(InputString,Last_Word),
END IF</description>
		<content:encoded><![CDATA[<p>No problem, @Alex D</p>
<p>All you have to do is modify the arguments to take in a length:</p>
<p>CREATE FUNCTION CAP_FIRST (input VARCHAR(255), maxLength int)</p>
<p>and then add an if:<br />
IF LENGTH(InputString) > maxLength THEN<br />
   SET InputString = CONCAT(	LEFT(InputString,Last_Word),<br />
END IF</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MySQL Capitalize Function by Alex D</title>
		<link>http://joezack.com/index.php/2008/10/20/mysql-capitalize-function/comment-page-1/#comment-1357</link>
		<dc:creator>Alex D</dc:creator>
		<pubDate>Wed, 22 Feb 2012 05:28:10 +0000</pubDate>
		<guid isPermaLink="false">http://joezack.com/?p=137#comment-1357</guid>
		<description>thanks for the script ;)
 
is it possible to modify the script to accept an additional parameter for capitalizing words that are longer than X characters? The script by Stefano doesn&#039;t work

Thanks
Alex</description>
		<content:encoded><![CDATA[<p>thanks for the script <img src='http://joezack.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>is it possible to modify the script to accept an additional parameter for capitalizing words that are longer than X characters? The script by Stefano doesn&#8217;t work</p>
<p>Thanks<br />
Alex</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Populating Select Boxes with Prototype by Guesk</title>
		<link>http://joezack.com/index.php/2009/11/16/populating-select-boxes-with-prototype/comment-page-1/#comment-1354</link>
		<dc:creator>Guesk</dc:creator>
		<pubDate>Fri, 03 Feb 2012 02:11:56 +0000</pubDate>
		<guid isPermaLink="false">http://joezack.com/?p=1230#comment-1354</guid>
		<description>hi??</description>
		<content:encoded><![CDATA[<p>hi??</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MySQL Capitalize Function by Stefano P</title>
		<link>http://joezack.com/index.php/2008/10/20/mysql-capitalize-function/comment-page-1/#comment-1349</link>
		<dc:creator>Stefano P</dc:creator>
		<pubDate>Tue, 17 Jan 2012 10:27:53 +0000</pubDate>
		<guid isPermaLink="false">http://joezack.com/?p=137#comment-1349</guid>
		<description>Slightly modified version of your code, to capitalize first char only for words longer than X character.
Una versione leggermente modificata per considerare solo le parole più lunghe di X caratteri.

DELIMITER $$

DROP FUNCTION IF EXISTS Capitalize$$

CREATE FUNCTION Capitalize (InputString VARCHAR(255)) RETURNS VARCHAR(255) CHARSET utf8
BEGIN
	DECLARE Input_Length INT;
	DECLARE Count INT;
	DECLARE Last_Word INT;
	DECLARE Min_Char INT;
	
	SET Input_Length = CHAR_LENGTH(InputString);
	SET InputString = LOWER(InputString);
	SET Count = 0;
	SET Last_Word = 0;
	SET Min_Char = 3;
	
	WHILE (Count  Min_Char) THEN 
				SET InputString = CONCAT(	LEFT(InputString,Last_Word),
											UPPER(MID(InputString,Last_Word + 1,1)),
											RIGHT(InputString,Input_Length - Last_Word - 1));
			END IF;
			SET Last_Word = Count;
		END IF;
		SET Count = Count + 1;
	END WHILE;
	
	RETURN InputString;
END$$

DELIMITER ;</description>
		<content:encoded><![CDATA[<p>Slightly modified version of your code, to capitalize first char only for words longer than X character.<br />
Una versione leggermente modificata per considerare solo le parole più lunghe di X caratteri.</p>
<p>DELIMITER $$</p>
<p>DROP FUNCTION IF EXISTS Capitalize$$</p>
<p>CREATE FUNCTION Capitalize (InputString VARCHAR(255)) RETURNS VARCHAR(255) CHARSET utf8<br />
BEGIN<br />
	DECLARE Input_Length INT;<br />
	DECLARE Count INT;<br />
	DECLARE Last_Word INT;<br />
	DECLARE Min_Char INT;</p>
<p>	SET Input_Length = CHAR_LENGTH(InputString);<br />
	SET InputString = LOWER(InputString);<br />
	SET Count = 0;<br />
	SET Last_Word = 0;<br />
	SET Min_Char = 3;</p>
<p>	WHILE (Count  Min_Char) THEN<br />
				SET InputString = CONCAT(	LEFT(InputString,Last_Word),<br />
											UPPER(MID(InputString,Last_Word + 1,1)),<br />
											RIGHT(InputString,Input_Length &#8211; Last_Word &#8211; 1));<br />
			END IF;<br />
			SET Last_Word = Count;<br />
		END IF;<br />
		SET Count = Count + 1;<br />
	END WHILE;</p>
<p>	RETURN InputString;<br />
END$$</p>
<p>DELIMITER ;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MySQL Capitalize Function by Hunter Monk</title>
		<link>http://joezack.com/index.php/2008/10/20/mysql-capitalize-function/comment-page-1/#comment-1348</link>
		<dc:creator>Hunter Monk</dc:creator>
		<pubDate>Fri, 13 Jan 2012 18:20:56 +0000</pubDate>
		<guid isPermaLink="false">http://joezack.com/?p=137#comment-1348</guid>
		<description>This works perfectly, thanks!

It it possible to apply this to an entire column inside a table? In a table, I have a column with a string inside it, and I need to capitalize the first letter of every word.

Is this possible using your function?

Thanks,
Hunter</description>
		<content:encoded><![CDATA[<p>This works perfectly, thanks!</p>
<p>It it possible to apply this to an entire column inside a table? In a table, I have a column with a string inside it, and I need to capitalize the first letter of every word.</p>
<p>Is this possible using your function?</p>
<p>Thanks,<br />
Hunter</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Eclipse RDS Problem: Contacting Server&#8230; by Fergie Meek</title>
		<link>http://joezack.com/index.php/2008/09/08/cfeclipse-rds-problem-contacting-server/comment-page-1/#comment-1338</link>
		<dc:creator>Fergie Meek</dc:creator>
		<pubDate>Wed, 28 Dec 2011 10:38:10 +0000</pubDate>
		<guid isPermaLink="false">http://joezack.com/?p=55#comment-1338</guid>
		<description>Thanks a lot for this, I have been pulling out my hair trying to figure out what was going on!
(BTW, the link you give doesn&#039;t work anymore but I managed to get it working from your description)
Thanks again,
Fergie</description>
		<content:encoded><![CDATA[<p>Thanks a lot for this, I have been pulling out my hair trying to figure out what was going on!<br />
(BTW, the link you give doesn&#8217;t work anymore but I managed to get it working from your description)<br />
Thanks again,<br />
Fergie</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Scraping and Saving Flickr Images with Ruby by dil bert</title>
		<link>http://joezack.com/index.php/2009/03/04/scraping-and-saving-flickr-images-with-ruby/comment-page-1/#comment-1334</link>
		<dc:creator>dil bert</dc:creator>
		<pubDate>Thu, 01 Dec 2011 18:24:48 +0000</pubDate>
		<guid isPermaLink="false">http://joezack.com/?p=680#comment-1334</guid>
		<description>well u gotta do great stuff - you are great. really - 
dude have a look at  https://scraperwiki.com/search/flickr/

Take a look at a few of those scrapers greetings 
dil</description>
		<content:encoded><![CDATA[<p>well u gotta do great stuff &#8211; you are great. really &#8211;<br />
dude have a look at  <a href="https://scraperwiki.com/search/flickr/" rel="nofollow">https://scraperwiki.com/search/flickr/</a></p>
<p>Take a look at a few of those scrapers greetings<br />
dil</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MySQL Capitalize Function by Anonymous</title>
		<link>http://joezack.com/index.php/2008/10/20/mysql-capitalize-function/comment-page-1/#comment-1333</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 26 Oct 2011 17:26:01 +0000</pubDate>
		<guid isPermaLink="false">http://joezack.com/?p=137#comment-1333</guid>
		<description>[...]  [...]</description>
		<content:encoded><![CDATA[<p>[...]  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ColdFusion Dynamic Variable Names by Antoine</title>
		<link>http://joezack.com/index.php/2008/09/24/coldfusion-dynamic-variable-names/comment-page-1/#comment-1321</link>
		<dc:creator>Antoine</dc:creator>
		<pubDate>Tue, 06 Sep 2011 10:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://joezack.com/?p=114#comment-1321</guid>
		<description>Left quoted variable name permits dynamic naming of it. Both methods are permitted.</description>
		<content:encoded><![CDATA[<p>Left quoted variable name permits dynamic naming of it. Both methods are permitted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MySQL Capitalize Function by Fungsi MySQL Huruf Kapital Pada Awal Kata &#187; Mangifero Scratchlog</title>
		<link>http://joezack.com/index.php/2008/10/20/mysql-capitalize-function/comment-page-1/#comment-1317</link>
		<dc:creator>Fungsi MySQL Huruf Kapital Pada Awal Kata &#187; Mangifero Scratchlog</dc:creator>
		<pubDate>Thu, 25 Aug 2011 02:42:05 +0000</pubDate>
		<guid isPermaLink="false">http://joezack.com/?p=137#comment-1317</guid>
		<description>[...] Sumber        Tweet       Posted by admin at 9:41 am Tagged with: capitalize, function, mysql [...]</description>
		<content:encoded><![CDATA[<p>[...] Sumber        Tweet       Posted by admin at 9:41 am Tagged with: capitalize, function, mysql [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

