<?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/"
	xmlns:media="http://search.yahoo.com/mrss/">

<channel>
	<title>Barattalo &#187; MySql</title>
	<atom:link href="http://www.barattalo.it/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.barattalo.it</link>
	<description>code snippets, classes and other stuff for developers</description>
	<lastBuildDate>Mon, 07 Nov 2011 11:40:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>PHP function to fix collation on database fields of MySQL</title>
		<link>http://www.barattalo.it/2010/02/11/php-function-to-fix-collation-on-database-fields-of-mysql/</link>
		<comments>http://www.barattalo.it/2010/02/11/php-function-to-fix-collation-on-database-fields-of-mysql/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 09:50:08 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[MySql]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[char set]]></category>
		<category><![CDATA[charcter set]]></category>
		<category><![CDATA[collation]]></category>
		<category><![CDATA[Utf8]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=455</guid>
		<description><![CDATA[This PHP function search for tables in the active db, match table&#8217;s name with the regular expression passed as first parameters and if it matches alter the table to convert charcter set and collation. This can be usefull when you have a db that you&#8217;ve created fast, without thinking, and than you discover: &#8220;Ouch! I&#8217;ve [...]


Related posts:<ol><li><a href='http://www.barattalo.it/2009/11/09/stop-utf8-problems-with-italian-characters/' rel='bookmark' title='Stop UTF8 problems with special characters'>Stop UTF8 problems with special characters</a></li>
<li><a href='http://www.barattalo.it/2010/01/29/10-php-usefull-functions-for-mysqli-improved-stuff/' rel='bookmark' title='10 PHP usefull functions for MySQLi stuff (mysql improved)'>10 PHP usefull functions for MySQLi stuff (mysql improved)</a></li>
<li><a href='http://www.barattalo.it/2010/01/25/10-php-usefull-functions-for-mysql-stuff/' rel='bookmark' title='10 PHP usefull functions for MySQL stuff'>10 PHP usefull functions for MySQL stuff</a></li>
<li><a href='http://www.barattalo.it/2010/01/19/php-to-get-enum-set-values-from-mysql-field/' rel='bookmark' title='PHP to get enum/set values from mysql field'>PHP to get enum/set values from mysql field</a></li>
<li><a href='http://www.barattalo.it/2010/01/21/mysql-add-counter-in-a-query/' rel='bookmark' title='MYSQL add counter in a query'>MYSQL add counter in a query</a></li>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2010/02/11/php-function-to-fix-collation-on-database-fields-of-mysql/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>10 PHP usefull functions for MySQLi stuff (mysql improved)</title>
		<link>http://www.barattalo.it/2010/01/29/10-php-usefull-functions-for-mysqli-improved-stuff/</link>
		<comments>http://www.barattalo.it/2010/01/29/10-php-usefull-functions-for-mysqli-improved-stuff/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 11:59:24 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[MySql]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[mysqli]]></category>
		<category><![CDATA[query]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=419</guid>
		<description><![CDATA[I&#8217;ve modified the previous post to use mysqli instead of mysql. Was it necessary? I think it was good step to start using mysqli. Below here there are all the functions in just one big block of code, without any examples (since you can adapt the ones in the original mysql post). List of the [...]


Related posts:<ol><li><a href='http://www.barattalo.it/2010/01/25/10-php-usefull-functions-for-mysql-stuff/' rel='bookmark' title='10 PHP usefull functions for MySQL stuff'>10 PHP usefull functions for MySQL stuff</a></li>
<li><a href='http://www.barattalo.it/2010/01/19/php-to-get-enum-set-values-from-mysql-field/' rel='bookmark' title='PHP to get enum/set values from mysql field'>PHP to get enum/set values from mysql field</a></li>
<li><a href='http://www.barattalo.it/2010/02/11/php-function-to-fix-collation-on-database-fields-of-mysql/' rel='bookmark' title='PHP function to fix collation on database fields of MySQL'>PHP function to fix collation on database fields of MySQL</a></li>
<li><a href='http://www.barattalo.it/2010/01/21/mysql-add-counter-in-a-query/' rel='bookmark' title='MYSQL add counter in a query'>MYSQL add counter in a query</a></li>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2010/01/29/10-php-usefull-functions-for-mysqli-improved-stuff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 PHP usefull functions for MySQL stuff</title>
		<link>http://www.barattalo.it/2010/01/25/10-php-usefull-functions-for-mysql-stuff/</link>
		<comments>http://www.barattalo.it/2010/01/25/10-php-usefull-functions-for-mysql-stuff/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 14:44:02 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[MySql]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[csv]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[mysql_fetch_array]]></category>
		<category><![CDATA[mysql_query]]></category>
		<category><![CDATA[optimize]]></category>
		<category><![CDATA[Recordset]]></category>
		<category><![CDATA[repair]]></category>
		<category><![CDATA[snippets]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=403</guid>
		<description><![CDATA[Here is my personal collection of 10 php function that I always include in my database function library. I think they are very usefull and I&#8217;d like to share with you. Here are the mysqli versions of the functions. (NEW) FUNCTION 1: CONNECT TO A DB Connect function. I know, everybody already has this function [...]


Related posts:<ol><li><a href='http://www.barattalo.it/2010/01/29/10-php-usefull-functions-for-mysqli-improved-stuff/' rel='bookmark' title='10 PHP usefull functions for MySQLi stuff (mysql improved)'>10 PHP usefull functions for MySQLi stuff (mysql improved)</a></li>
<li><a href='http://www.barattalo.it/2010/01/19/php-to-get-enum-set-values-from-mysql-field/' rel='bookmark' title='PHP to get enum/set values from mysql field'>PHP to get enum/set values from mysql field</a></li>
<li><a href='http://www.barattalo.it/2010/01/21/mysql-add-counter-in-a-query/' rel='bookmark' title='MYSQL add counter in a query'>MYSQL add counter in a query</a></li>
<li><a href='http://www.barattalo.it/2009/11/09/execute-scalar-for-php/' rel='bookmark' title='Execute Scalar and Execute Row for Php'>Execute Scalar and Execute Row for Php</a></li>
<li><a href='http://www.barattalo.it/2010/02/11/php-function-to-fix-collation-on-database-fields-of-mysql/' rel='bookmark' title='PHP function to fix collation on database fields of MySQL'>PHP function to fix collation on database fields of MySQL</a></li>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2010/01/25/10-php-usefull-functions-for-mysql-stuff/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>MYSQL add counter in a query</title>
		<link>http://www.barattalo.it/2010/01/21/mysql-add-counter-in-a-query/</link>
		<comments>http://www.barattalo.it/2010/01/21/mysql-add-counter-in-a-query/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 23:13:16 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[MySql]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[counter]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[query]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=393</guid>
		<description><![CDATA[Sometimes I&#8217;ve needed to add a counter column in a query and I don&#8217;t want to add the column with php, so I&#8217;ve found this query to put the counter directly in the record set returned out from the query. To use it in PHP scripts you have to use 2 query statements: Related posts:10 [...]


Related posts:<ol><li><a href='http://www.barattalo.it/2010/01/25/10-php-usefull-functions-for-mysql-stuff/' rel='bookmark' title='10 PHP usefull functions for MySQL stuff'>10 PHP usefull functions for MySQL stuff</a></li>
<li><a href='http://www.barattalo.it/2010/01/29/10-php-usefull-functions-for-mysqli-improved-stuff/' rel='bookmark' title='10 PHP usefull functions for MySQLi stuff (mysql improved)'>10 PHP usefull functions for MySQLi stuff (mysql improved)</a></li>
<li><a href='http://www.barattalo.it/2009/11/09/execute-scalar-for-php/' rel='bookmark' title='Execute Scalar and Execute Row for Php'>Execute Scalar and Execute Row for Php</a></li>
<li><a href='http://www.barattalo.it/2010/01/19/php-to-get-enum-set-values-from-mysql-field/' rel='bookmark' title='PHP to get enum/set values from mysql field'>PHP to get enum/set values from mysql field</a></li>
<li><a href='http://www.barattalo.it/2010/02/11/php-function-to-fix-collation-on-database-fields-of-mysql/' rel='bookmark' title='PHP function to fix collation on database fields of MySQL'>PHP function to fix collation on database fields of MySQL</a></li>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2010/01/21/mysql-add-counter-in-a-query/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Using REPLACE in an UPDATE statement to fix data on MSSQL and MySQL</title>
		<link>http://www.barattalo.it/2010/01/21/using-replace-in-an-update-statement-to-fix-data-on-mssql-and-mysql/</link>
		<comments>http://www.barattalo.it/2010/01/21/using-replace-in-an-update-statement-to-fix-data-on-mssql-and-mysql/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 23:09:15 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[MsSQL]]></category>
		<category><![CDATA[MySql]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=304</guid>
		<description><![CDATA[Sometimes it&#8217;s necessary fix data on the database. I had to fix on a Microsoft database: I had to fix on a MySQL database: The syntax is the same. Related posts:Bot that retrieves url meta data and other infos


Related posts:<ol><li><a href='http://www.barattalo.it/2010/01/12/bot-that-retrieves-url-meta-data-info/' rel='bookmark' title='Bot that retrieves url meta data and other infos'>Bot that retrieves url meta data and other infos</a></li>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2010/01/21/using-replace-in-an-update-statement-to-fix-data-on-mssql-and-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP to get enum/set values from mysql field</title>
		<link>http://www.barattalo.it/2010/01/19/php-to-get-enum-set-values-from-mysql-field/</link>
		<comments>http://www.barattalo.it/2010/01/19/php-to-get-enum-set-values-from-mysql-field/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 09:36:50 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[MySql]]></category>
		<category><![CDATA[Php]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=381</guid>
		<description><![CDATA[This function returns an array with the elements allowed in a ENUM or SET mysql field. This can be usefull if you&#8217;re making some automation and need to retrieve those values without writing them in your code: Related posts:10 PHP usefull functions for MySQL stuff 10 PHP usefull functions for MySQLi stuff (mysql improved) MYSQL [...]


Related posts:<ol><li><a href='http://www.barattalo.it/2010/01/25/10-php-usefull-functions-for-mysql-stuff/' rel='bookmark' title='10 PHP usefull functions for MySQL stuff'>10 PHP usefull functions for MySQL stuff</a></li>
<li><a href='http://www.barattalo.it/2010/01/29/10-php-usefull-functions-for-mysqli-improved-stuff/' rel='bookmark' title='10 PHP usefull functions for MySQLi stuff (mysql improved)'>10 PHP usefull functions for MySQLi stuff (mysql improved)</a></li>
<li><a href='http://www.barattalo.it/2010/01/21/mysql-add-counter-in-a-query/' rel='bookmark' title='MYSQL add counter in a query'>MYSQL add counter in a query</a></li>
<li><a href='http://www.barattalo.it/2009/11/09/execute-scalar-for-php/' rel='bookmark' title='Execute Scalar and Execute Row for Php'>Execute Scalar and Execute Row for Php</a></li>
<li><a href='http://www.barattalo.it/2010/02/11/php-function-to-fix-collation-on-database-fields-of-mysql/' rel='bookmark' title='PHP function to fix collation on database fields of MySQL'>PHP function to fix collation on database fields of MySQL</a></li>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2010/01/19/php-to-get-enum-set-values-from-mysql-field/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Stop UTF8 problems with special characters</title>
		<link>http://www.barattalo.it/2009/11/09/stop-utf8-problems-with-italian-characters/</link>
		<comments>http://www.barattalo.it/2009/11/09/stop-utf8-problems-with-italian-characters/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 15:04:21 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[MySql]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Charset]]></category>
		<category><![CDATA[Encoding]]></category>
		<category><![CDATA[utf-8]]></category>
		<category><![CDATA[Utf8]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=56</guid>
		<description><![CDATA[I&#8217;m italian and I always need to use special chars like è é à ù. The same need belongs to french developers, and many other non-english developers. To use special chars without encoding problems try to follow this 4 rules: create fields on db with utf8_general_ci collation make the query &#8216;set names&#8217; after any connection [...]


Related posts:<ol><li><a href='http://www.barattalo.it/2010/01/29/10-php-usefull-functions-for-mysqli-improved-stuff/' rel='bookmark' title='10 PHP usefull functions for MySQLi stuff (mysql improved)'>10 PHP usefull functions for MySQLi stuff (mysql improved)</a></li>
<li><a href='http://www.barattalo.it/2010/02/11/php-function-to-fix-collation-on-database-fields-of-mysql/' rel='bookmark' title='PHP function to fix collation on database fields of MySQL'>PHP function to fix collation on database fields of MySQL</a></li>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2009/11/09/stop-utf8-problems-with-italian-characters/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Execute Scalar and Execute Row for Php</title>
		<link>http://www.barattalo.it/2009/11/09/execute-scalar-for-php/</link>
		<comments>http://www.barattalo.it/2009/11/09/execute-scalar-for-php/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 14:36:11 +0000</pubDate>
		<dc:creator>Giulio Pons</dc:creator>
				<category><![CDATA[MySql]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Recordset]]></category>

		<guid isPermaLink="false">http://www.barattalo.it/?p=52</guid>
		<description><![CDATA[A couple of simple functions thar returns the first value and the first row of a result set. Very usefull. Need the connection to be opened. Related posts:10 PHP usefull functions for MySQL stuff MYSQL add counter in a query PHP function to fix collation on database fields of MySQL


Related posts:<ol><li><a href='http://www.barattalo.it/2010/01/25/10-php-usefull-functions-for-mysql-stuff/' rel='bookmark' title='10 PHP usefull functions for MySQL stuff'>10 PHP usefull functions for MySQL stuff</a></li>
<li><a href='http://www.barattalo.it/2010/01/21/mysql-add-counter-in-a-query/' rel='bookmark' title='MYSQL add counter in a query'>MYSQL add counter in a query</a></li>
<li><a href='http://www.barattalo.it/2010/02/11/php-function-to-fix-collation-on-database-fields-of-mysql/' rel='bookmark' title='PHP function to fix collation on database fields of MySQL'>PHP function to fix collation on database fields of MySQL</a></li>
</ol>]]></description>
		<wfw:commentRss>http://www.barattalo.it/2009/11/09/execute-scalar-for-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

