<?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>westworld: a webmasters best friend &#187; MySQL</title>
	<atom:link href="http://www.westworld.be/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.westworld.be</link>
	<description>A webmasters best friend</description>
	<lastBuildDate>Tue, 22 Nov 2011 10:58:05 +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>Pdo get column names</title>
		<link>http://www.westworld.be/uncategorized/pdo-get-column-names/</link>
		<comments>http://www.westworld.be/uncategorized/pdo-get-column-names/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 14:39:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.westworld.be/?p=207</guid>
		<description><![CDATA[<a href="http://www.westworld.be/uncategorized/pdo-get-column-names/" title="Pdo get column names"></a>PHP&#8217;s Pdo doesnt have a default columnname function. After searching Google I found that many people seem to be looking for this function. You can get the columnnames with an easy query to the schema: $querystring = "SELECT * FROM &#8230;<p class="read-more"><a href="http://www.westworld.be/uncategorized/pdo-get-column-names/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.westworld.be/uncategorized/pdo-get-column-names/" title="Pdo get column names"></a><p>PHP&#8217;s Pdo doesnt have a default columnname function. After searching Google I found that many people seem to be looking for this function. You can get the columnnames with an easy query to the schema:</p>
<pre class="brush:sql">$querystring = "SELECT * FROM INFORMATION_SCHEMA.Columns where TABLE_NAME = $table";</pre>
<h4>Related Blogs</h4>
<ul class="pc_pingback">
<li class="hdl" style="list-style: none;">Related Blogs on <strong></strong></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.westworld.be/uncategorized/pdo-get-column-names/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>searching mysql for a columnname</title>
		<link>http://www.westworld.be/mysql/searching-mysql-for-a-columnname/</link>
		<comments>http://www.westworld.be/mysql/searching-mysql-for-a-columnname/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 14:15:48 +0000</pubDate>
		<dc:creator>westworld</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql column name]]></category>

		<guid isPermaLink="false">http://www.westworld.be/?p=74</guid>
		<description><![CDATA[<a href="http://www.westworld.be/mysql/searching-mysql-for-a-columnname/" title="searching mysql for a columnname"></a>SELECT table_name,column_name FROM  information_schema.COLUMNS WHERE table_schema = &#8216;your database here&#8217; and column_name = &#8216;your columname here&#8217;]]></description>
			<content:encoded><![CDATA[<a href="http://www.westworld.be/mysql/searching-mysql-for-a-columnname/" title="searching mysql for a columnname"></a><div><span style="font-family: Arial; font-size: x-small;">SELECT table_name,column_name</span></div>
<div><span style="font-family: Arial; font-size: x-small;">FROM  information_schema.COLUMNS<br />
WHERE  table_schema = &#8216;your database here&#8217;</span></div>
<div>and column_name = &#8216;your columname here&#8217;</div>
<ul class="pc_pingback">
<li class="hdl" style="list-style: none"></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.westworld.be/mysql/searching-mysql-for-a-columnname/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mysql: find wrong emailadres</title>
		<link>http://www.westworld.be/mysql/mysql-find-wrong-emailadres/</link>
		<comments>http://www.westworld.be/mysql/mysql-find-wrong-emailadres/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 10:21:53 +0000</pubDate>
		<dc:creator>westworld</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Regexp]]></category>

		<guid isPermaLink="false">http://www.westworld.be/?p=46</guid>
		<description><![CDATA[<a href="http://www.westworld.be/mysql/mysql-find-wrong-emailadres/" title="Mysql: find wrong emailadres"></a>SELECT  Email FROM Emails where Email not REGEXP &#8216;^[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,4}$&#8217; and Email != &#8220;&#8221;]]></description>
			<content:encoded><![CDATA[<a href="http://www.westworld.be/mysql/mysql-find-wrong-emailadres/" title="Mysql: find wrong emailadres"></a><div><span style="font-family: Arial; font-size: x-small;">SELECT  Email FROM Emails where Email not REGEXP  &#8216;^[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,4}$&#8217; and Email  != &#8220;&#8221;</span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.westworld.be/mysql/mysql-find-wrong-emailadres/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHPMyAdmin: Table specific privileges</title>
		<link>http://www.westworld.be/mysql/phpmyadmin-table-specific-privileges/</link>
		<comments>http://www.westworld.be/mysql/phpmyadmin-table-specific-privileges/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 15:22:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PhpMyAdmin]]></category>
		<category><![CDATA[user-specific privileges]]></category>

		<guid isPermaLink="false">http://www.westworld.be/?p=23</guid>
		<description><![CDATA[How to give a user 'select' privileges for a table with help from PHPMyAdmin.<p class="read-more"><a href="http://www.westworld.be/mysql/phpmyadmin-table-specific-privileges/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.westworld.be/mysql/phpmyadmin-table-specific-privileges/" title="PHPMyAdmin: Table specific privileges"></a><p>If you like to grant a user special privileges, like for example, only run select queries on a table, then PHPMyAdmin is your friend.</p>
<p>1. Go to the user settings<br />
2. leave the global settings blank<br />
3. under database specific, choose your database.<br />
4. in the table specific, opt for the table you wish to add.<br />
5. in the select column, select all fields that can be used for select queries.<br />
6. check show_view and Create_view</p>
<p>That&#8217;s all <img src='http://www.westworld.be/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<ul class="pc_pingback">
<li class="hdl" style="list-style: none"></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.westworld.be/mysql/phpmyadmin-table-specific-privileges/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP, MySQL and utf-8</title>
		<link>http://www.westworld.be/mysql/php-mysql-and-utf-8/</link>
		<comments>http://www.westworld.be/mysql/php-mysql-and-utf-8/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 13:27:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[utf8]]></category>

		<guid isPermaLink="false">http://www.westworld.be/?p=17</guid>
		<description><![CDATA[Some tips on how to make sure that php, mysql and utf-8 get along.<p class="read-more"><a href="http://www.westworld.be/mysql/php-mysql-and-utf-8/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://www.westworld.be/mysql/php-mysql-and-utf-8/" title="PHP, MySQL and utf-8"></a><p>When creating forms with french content, I got strange characters in my database.<br />
The solution was to put some utf-8 declaration at the top of the php pages and to add some extra code for mysql.</p>
<p><strong>php:</strong></p>
<p>&lt;?<br />
php header(&#8216;content-type: text/html; charset: utf-8&#8242;);<br />
mb_internal_encoding( &#8216;UTF-8&#8242; );<br />
?&gt;</p>
<p><strong>MySQL:</strong><br />
add the following code after you make a connection and before you run a query<br />
mysql_query(&#8220;SET NAMES &#8216;utf8&#8242;&#8221;);<br />
mysql_query(&#8220;SET CHARACTER SET utf8&#8243;);</p>
<p>Additionally you could also add accept-charset=&#8221;utf-8&#8243; to your form tags.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.westworld.be/mysql/php-mysql-and-utf-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced

Served from: www.westworld.be @ 2012-02-06 09:21:33 -->
