<?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>Mahbubur Rahman - jQuery, PHP, JavaScript, Codeigniter, CSS &#187; mysql</title>
	<atom:link href="http://www.mahbubblog.com/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mahbubblog.com</link>
	<description>PHP, JQUERY, JAVASCRIPT fun</description>
	<lastBuildDate>Thu, 02 Jun 2011 09:28:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Review : Crystal Database Wrapper for PHP</title>
		<link>http://www.mahbubblog.com/php/review-crystal-database-wrapper-for-php/</link>
		<comments>http://www.mahbubblog.com/php/review-crystal-database-wrapper-for-php/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 04:27:35 +0000</pubDate>
		<dc:creator>Mahbub</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Active Record]]></category>
		<category><![CDATA[MySQL Database Wrapper]]></category>
		<category><![CDATA[ORM]]></category>

		<guid isPermaLink="false">http://www.mahbubblog.com/?p=267</guid>
		<description><![CDATA[One of the sites i keep an eye on is greepit.com to know about some of the latest and coolest tools in web development. I came across this new Database Library or wrapper called Crystal database wrapper. The library really looks promising and in fact appears to be minimalistic as they claim. They also have [...]]]></description>
			<content:encoded><![CDATA[<div style="margin: 0 0 20px 0;">
<p><img class="alignleft size-full wp-image-268" style="margin-right: 10px; margin-left: 0px; margin-top: 0px; margin-bottom: 0px;" title="crystal-db" src="http://www.mahbubblog.com/wp-content/uploads/2010/09/crystal-db.png" alt="Crystal Database Wrapper for PHP" width="297" height="104" /><br />
 One of the sites i keep an eye on is greepit.com to know about some of the latest and coolest tools in web development. I came across this new Database Library or wrapper called <a title="Crystal Database Wrapper" href="http://crystal-project.net/" target="_blank">Crystal</a> database wrapper. The library really looks promising and in fact appears to be minimalistic as they claim. They also have a data validation module and manipulation module which is all you need to create basic to intermediate apps. From the <a title="Crystal User Guide" href="http://crystal-project.net/docs/0_4/" target="_blank">user guide</a> i looked at some of the examples of CRUD and i just felt it&#8217;s Active Record from Codeigniter. As i did a lot of Codeigniter sites so far, it just looked so comfortable to me. Just for an example.</p>
</div>
<p>
<pre class="brush: php">&lt;br /&gt;
 $db-&gt;select(&#039;products, clients&#039;)-&gt;from(&#039;table&#039;)&lt;br /&gt;
 // Produces SELECT `products`, `clients` FROM `table` - Available in Crystal 0.3&lt;/p&gt;

&lt;p&gt;$db-&gt;select(&#039;very_long_column_name :as column, products&#039;)-&gt;from(&#039;table&#039;)&lt;br /&gt;
 // Produces SELECT `very_long_column_name` AS `column, `products` FROM `table` -- Available in Crystal 0.3&lt;/p&gt;

&lt;p&gt;$db-&gt;select(array(&#039;products&#039;,&#039;clients&#039;)-&gt;from(&#039;table&#039;)&lt;br /&gt;
 // Produces SELECT `products`, `clients` FROM `table`&lt;/p&gt;

&lt;p&gt;// You can use string if you need single column&lt;br /&gt;
 $db-&gt;select(&#039;products&#039;)-&gt;from(&#039;table&#039;)&lt;br /&gt;
 // Produces SELECT `products` FROM `table`&lt;/p&gt;

&lt;p&gt;// OR if you need complex columns selection, you can skip Crystal&#039;s default parameter filtering&lt;br /&gt;
 $db-&gt;select(&#039;products, MAX(price), MIN(payment)&#039;, FALSE)&lt;br /&gt;
 // Produces SELECT products, MAX(price), MIN(payment)&lt;br /&gt;
 </pre>
</p>
<p><span id="more-267"></span></p>
<p>This is almost like the<a title="Codeigniter's Active Record Library" href="http://codeigniter.com/user_guide/database/active_record.html" target="_blank"> Active Record library of Codeigniter</a>. Actually even if we want to make a newer one, we&#8217;d have to use similar type of syntax because it&#8217;s intuitive. So NO HARM being similar to other libraries syntax <img src='http://www.mahbubblog.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  . If you have done much of Active Record in Codeigniter,  you can see all those examples are pretty familiar. The <a href="http://crystal-project.net/docs/0_4/data-validation/">db validation</a> sections looks cool too.</p>
<p>It&#8217;d will be very nice for projects which are not written using any framework. There were lot of projects i wish i had a better db wrapper like this when i didn&#8217;t want to use bulky adodb library. So for projects of that sort can be rescued with this library. And of course anyone can hook it into any Framework with a bit of more study.</p>
<p>The one statement on the site i have problem with is &#8220;<strong>Crystal was designed to replace framework specific database layers like Zend_Db and Codeigniter&#8217;s active record library and complex ORM&#8217;s like Doctrine</strong>&#8220;. I would kinda disagree to think like that because may be it can replace Active Record in Codeigniter or Zend_db in Zend Framework but tough to replace an <a href="http://en.wikipedia.org/wiki/Object-relational_mapping" target="_blank">ORM </a>like Doctrine. I&#8217;ve been doing Doctrine with Zend recently and a fan of it seeing the power of it and flexibility. To make something better than <a title="Doctrine Project Page" href="http://www.doctrine-project.org/" target="_blank">Doctrine </a>with all the things it is capable of, it could take years. And Crystal is not an ORM yet. But as an independent library, i pretty like the way it&#8217;s laid out.</p>
<p>So use it as it fits your need.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mahbubblog.com/php/review-crystal-database-wrapper-for-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sorting table columns in mysql by adminer</title>
		<link>http://www.mahbubblog.com/php/sorting-table-columns-in-mysql-by-adminer/</link>
		<comments>http://www.mahbubblog.com/php/sorting-table-columns-in-mysql-by-adminer/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 05:16:13 +0000</pubDate>
		<dc:creator>Mahbub</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.mahbubblog.com/?p=207</guid>
		<description><![CDATA[Sorting columns in a mysql table has always been a nasty way to deal with. It can be done some sql commands of course but this is not what we do more often. Even the most popular DB admin package &#8211; phpmyadmin doesn&#8217;t provide such utility to sort or re-arrange fields in mysql. It occurred [...]]]></description>
			<content:encoded><![CDATA[<p>Sorting columns in a mysql table has always been a nasty way to deal with. It can be done some sql commands of course but this is not what we do more often. Even the most popular DB admin package &#8211; phpmyadmin doesn&#8217;t provide such utility to sort or re-arrange fields in mysql. It occurred to me a lot of times that i had to bring some filed to a different position for convenience after i first created it. But i had to run some queries which i never liked, to do this task.</p>
<p>So ADMINER (formerly phpminadmin) comes up with a nifty utility in their one file standalone package.</p>
<p>If you haven&#8217;t heard of Adminer yet (you must have missed a great tool),  download from http://www.adminer.org/en/</p>
<p>And run it from your web server from any location. After entering credentials and selecting database, just select a table from the left which appears like this.</p>
<p><a href="http://www.mahbubblog.com/wp-content/uploads/2009/09/adminer_table_select.jpg"><img class="alignnone size-medium wp-image-208" title="adminer_table_select" src="http://www.mahbubblog.com/wp-content/uploads/2009/09/adminer_table_select-300x157.jpg" alt="adminer_table_select" width="300" height="157" /></a></p>
<p>Now you get some options like &#8211; Alter table   |   Default values  |   Select table  |  New item</p>
<p>Select Alter Table and you get a screen like this</p>
<p><a style="text-decoration: none; color: #cc6600; padding: 0px; margin: 0px; border: 0px initial initial;" href="http://www.mahbubblog.com/wp-content/uploads/2009/09/adminer.jpg"><img style="text-align: center; padding: 0px; margin: 0px; border: 0px none initial;" title="adminer" src="http://www.mahbubblog.com/wp-content/uploads/2009/09/adminer-300x117.jpg" alt="adminer" width="300" height="117" /></a></p>
<p>Alright, you pretty know what to do with those up and down arrows now. Don&#8217;t forget to save the changes <img src='http://www.mahbubblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.mahbubblog.com/php/sorting-table-columns-in-mysql-by-adminer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PhpMinAdmin &#8211; nearest alternative to phpMyAdmin</title>
		<link>http://www.mahbubblog.com/php/phpminiadmin-nearest-alternative-to-phpmyadmin/</link>
		<comments>http://www.mahbubblog.com/php/phpminiadmin-nearest-alternative-to-phpmyadmin/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 10:25:28 +0000</pubDate>
		<dc:creator>Mahbub</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[adminer]]></category>
		<category><![CDATA[dbadmin]]></category>
		<category><![CDATA[phpminadmin]]></category>
		<category><![CDATA[phpminiadmin]]></category>
		<category><![CDATA[phpmyadmin]]></category>

		<guid isPermaLink="false">http://www.mahbubblog.com/?p=119</guid>
		<description><![CDATA[I can&#8217;t possibly tell how many times i&#8217;ve been seriously irritated  navigating to phpmyadmin option of my hosting or hostings of the projects i have worked with. Most of the cases you&#8217;ll have to click many times. And in Plesk ? It simply sucks when it comes to use phpMyAdmin from there. I&#8217;ve always used [...]]]></description>
			<content:encoded><![CDATA[<p>I can&#8217;t possibly tell how many times i&#8217;ve been seriously irritated  navigating to phpmyadmin option of my hosting or hostings of the projects i have worked with. Most of the cases you&#8217;ll have to click many times. And in Plesk ? It simply sucks when it comes to use phpMyAdmin from there. I&#8217;ve always used phpminiadmin as a quick alternative solution because it needs no configuration and no install. But it&#8217;s very basic and needs too much typing to get things done. Today I found phpminadmin. It&#8217;s just the name without the <strong>i </strong>in php phpmin<strong><span style="color: #ff0000; ">i</span></strong>admin. It simply rocks!! It has nearly every option that you&#8217;d normally expect from a db admin tool. And to me, it&#8217;s a substitute to phpmyadmin for ongoing operations.</p>
<p><a href="http://www.mahbubblog.com/wp-content/uploads/2009/03/phpminadmin.png"><img class="size-medium wp-image-120" title="phpminadmin" src="http://www.mahbubblog.com/wp-content/uploads/2009/03/phpminadmin-300x160.png" alt="phpminadmin screenshot" width="300" height="160" /></a></p>
<p>It has select, search, edit, index , create &#8212; almost everything u need. The best part is that it needs no install and it&#8217;s a single file weighing about 167KB.</p>
<p>But of course, i&#8217;m not saying it&#8217;s a fully alternative to phpmyadmin. No way. They have been developing this mighty tool for over nine years.  But phpminadmin surely is a very very good altenative of that for quick solutions. Check it out here.</p>
<p><a href="http://phpminadmin.sourceforge.net/" target="_blank">http://phpminadmin.sourceforge.net/</a></p>
<p>Why didn&#8217;t I find it earlier ?  :-(</p>
<p><strong>UPDATE : THE PROJECT HAS BEEN RENAMED TO &#8220;adminer&#8221; AND IS AVAILABLE at </strong><a href="http://www.adminer.org/en/"><strong>http://www.adminer.org/en/</strong></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mahbubblog.com/php/phpminiadmin-nearest-alternative-to-phpmyadmin/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

