<?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>devexp &#187; database</title>
	<atom:link href="http://www.devexp.eu/category/devexp/database/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.devexp.eu</link>
	<description>DEVelopment EXPerience, shared with the world!</description>
	<lastBuildDate>Fri, 28 Oct 2011 12:07:45 +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>speeding up your mysql db</title>
		<link>http://www.devexp.eu/2009/08/26/speeding-up-your-mysql-db/</link>
		<comments>http://www.devexp.eu/2009/08/26/speeding-up-your-mysql-db/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 07:17:26 +0000</pubDate>
		<dc:creator>van Rumste Kenneth</dc:creator>
				<category><![CDATA[database]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[db]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[webinar]]></category>

		<guid isPermaLink="false">http://www.devexp.eu/?p=880</guid>
		<description><![CDATA[This is an interesting video on how to speed up your mysql db. Be sure you have an hour of free time if you want to watch this. If you want to look for more videos on how to to &#8230; <a href="http://www.devexp.eu/2009/08/26/speeding-up-your-mysql-db/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>This is an interesting video on how to speed up your mysql db. Be sure you have an hour of free time if you want to watch this.<br />
If you want to look for more videos on how to to tech stuff I recommend you take a look at <a href="http://www.bestechvideos.com/" target="_blank">bestechvideos</a></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="300" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=5030466&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="400" height="300" src="http://vimeo.com/moogaloop.swf?clip_id=5030466&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><a href="http://vimeo.com/5030466">The Quick and Easy Guide to Speed Up MySQL for Web Developers</a> from <a href="http://vimeo.com/user1829646">Jonathan Levin</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<div class="shr-publisher-880"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.devexp.eu/2009/08/26/speeding-up-your-mysql-db/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Useful Propel criteria methods and constants</title>
		<link>http://www.devexp.eu/2009/04/06/useful-propel-criteria-methods-and-constants/</link>
		<comments>http://www.devexp.eu/2009/04/06/useful-propel-criteria-methods-and-constants/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 12:00:29 +0000</pubDate>
		<dc:creator>van Rumste Kenneth</dc:creator>
				<category><![CDATA[Framework]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Symfony]]></category>
		<category><![CDATA[criteria]]></category>
		<category><![CDATA[method]]></category>
		<category><![CDATA[propel]]></category>
		<category><![CDATA[query]]></category>

		<guid isPermaLink="false">http://www.devexp.eu/?p=551</guid>
		<description><![CDATA[I&#8217;m working with criteria quite often lately and must say it is a handy way of query writing. The only problem I have with criteria is that I don&#8217;t seem to find a simple overview (list) of the most important &#8230; <a href="http://www.devexp.eu/2009/04/06/useful-propel-criteria-methods-and-constants/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I&#8217;m working with criteria quite often lately and must say it is a handy way of query writing. The only problem I have with criteria is that I don&#8217;t seem to find a simple overview (list) of the most important methods you can add to it. I don&#8217;t really like the <a href="http://propel.phpdb.org/trac/" target="_blank">Propel website</a> as I don&#8217;t find the thing I need in a few seconds and that is a must for a lot of people. If I create a list of the most important criteria methods for myself, I rather share it with you guys&#8230;</p>
<p><strong>Simple Select query </strong>with 2 criteria to check:</p>
<pre class="brush: php; title: ; notranslate">
$c = new Criteria();
$c-&gt;add(AuthorPeer::FIRST_NAME, &quot;Karl&quot;);
$c-&gt;add(AuthorPeer::LAST_NAME, &quot;Marx&quot;, Criteria::NOT_EQUAL);
$authors = AuthorPeer::doSelect($c);
// $authors contains array of Author objects
</pre>
<p>In SQL this will be:</p>
<pre class="brush: php; title: ; notranslate">SELECT ... FROM author WHERE author.FIRST_NAME = 'Karl' AND author.LAST_NAME &lt;&gt; 'Marx';</pre>
<p>It&#8217;s quite simple to write the criteria, the only thing needed to write them is a list of options.</p>
<p><span id="more-551"></span><strong>To add Or to the criteria</strong> that have to be checked write:</p>
<pre class="brush: php; title: ; notranslate">
$cton1 = $c-&gt;getNewCriterion(AuthorPeer::FIRST_NAME, 'Karl');
$cton2 = $c-&gt;getNewCriterion(AuthorPeer::LAST_NAME,  'Marx', Criteria:: NOT_EQUAL);

// combine them
$cton1-&gt;addOr($cton2);
</pre>
<p>In SQL this will be:</p>
<pre class="brush: php; title: ; notranslate">SELECT ... FROM author WHERE author.FIRST_NAME = 'Karl' OR author.LAST_NAME &lt;&gt; 'Marx';</pre>
<p>Quite simple isn&#8217;t it, and the usage of criteria is quite readable once you start knowing all the options.</p>
<p>Possible operators for criteria (write them like Criteria::Equals)</p>
<ul type="disc">
<li>EQUAL (default)</li>
<li>NOT_EQUAL</li>
<li>GREATER_THAN</li>
<li>LESS_THAN</li>
<li>GREATER_EQUAL</li>
<li>LESS_EQUAL</li>
<li>LIKE</li>
<li>NOT_LIKE</li>
<li>IN</li>
<li>CUSTOM</li>
</ul>
<p>This allows you to write your own condition as second parameter.</p>
<ul type="disc">
<li>CUSTOM_EQUAL</li>
</ul>
<p>This is used to write a custom condition in an UPDATE query</p>
<ul type="disc">
<li>ISNULL</li>
<li>ISNOTNULL</li>
</ul>
<p>For some methods you need to add a line to the criteria to specify if they have to be used or not:</p>
<p><strong>$c-&gt;setIgnoreCase</strong>(true);<br />
This is to specify if the query should be case sensitive or not.</p>
<p><strong>$c-&gt;addJoin</strong>(ReviewPeer::BOOK_ID, BookPeer::ID, Criteria::INNER_JOIN);<br />
INNER JOIN (default) the table in parameter 1 to the table in parameter 2. In the same way you can RIGHT or LEFT JOIN.</p>
<p><strong>$c-&gt;addAscendingOrder</strong>ByColumn(table::column);<br />
This will add an ascending order for the specified column. Off course you can to the opposite too by using addDescendingOrderByColumn.</p>
<p><strong>$criteria-&gt;addSelectColumn</strong>(self::LABEL);<br />
This will add only this column to the select statement, by default he selects all fields of a table (default *)</p>
<p>All info about the methods and constants of criteria can be found <a href="http://propel.phpdb.org/docs/api/1.3/runtime/propel-util/Criteria.html" target="_blank">here</a>.</p>
<div class="shr-publisher-551"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.devexp.eu/2009/04/06/useful-propel-criteria-methods-and-constants/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>forgotten syntaxes for MySQL</title>
		<link>http://www.devexp.eu/2009/03/31/forgotten-syntaxes-for-mysql/</link>
		<comments>http://www.devexp.eu/2009/03/31/forgotten-syntaxes-for-mysql/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 11:25:26 +0000</pubDate>
		<dc:creator>van Rumste Kenneth</dc:creator>
				<category><![CDATA[database]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[delayed]]></category>
		<category><![CDATA[duplicate key]]></category>
		<category><![CDATA[infile]]></category>
		<category><![CDATA[insert]]></category>
		<category><![CDATA[option]]></category>
		<category><![CDATA[outfile]]></category>
		<category><![CDATA[replace]]></category>
		<category><![CDATA[select]]></category>
		<category><![CDATA[syntax]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://www.devexp.eu/?p=527</guid>
		<description><![CDATA[A lot of people seem to have problems with updating or inserting data in tables in an intelligent way. We shouldn&#8217;t point a finger to those who don’t use the correct syntax for the problem it solves, because there are &#8230; <a href="http://www.devexp.eu/2009/03/31/forgotten-syntaxes-for-mysql/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><img class="alignright" style="border: 0pt none; margin: 5px;" title="MySQL" src="http://dev.mysql.com/common/logos/logo_mysql_sun_a.gif" alt="" width="114" height="68" />A lot of people seem to have problems with updating or inserting data in tables in an intelligent way. We shouldn&#8217;t point a finger to those who don’t use the correct syntax for the problem it solves, because there are a lot of different ways to do this, but I wanted to create a little list of interesting syntax&#8217;s that are often forgotten and never used. I will talk about:</p>
<ul>
<li>insert&#8230; on duplicate key update</li>
<li>replace</li>
<li>insert&#8230; select</li>
<li>Load data infile and select into outfile</li>
<li>delayed</li>
</ul>
<p><span id="more-527"></span></p>
<p>When starting with SQL a few years ago I always executed a query to get a row out of a table and then updated or insert a row in a second query. Of course there are better solutions for this problem according to the specific action you want to do:</p>
<p><strong>INSERT&#8230; ON DUPLICATE KEY UPDATE</strong><br />
In this case it is possible for anyone to insert a row in a table, but if the key of this row already exists, it updates a specific value:</p>
<pre class="brush: sql; title: ; notranslate">INSERT INTO table (a,b,c) VALUES (1,2,3) ON DUPLICATE KEY UPDATE c=c+1;</pre>
<p><strong>REPLACE</strong><br />
Replace works exactly like insert, except that if a row already exists, for the unique index or primary key, it is first deleted and then inserted as a new row.<br />
If you have a table where there is no primary key or index, the replace statement makes absolutely no sense, as there will be nothing to delete.</p>
<pre class="brush: sql; title: ; notranslate">REPLACE INTO table_1 SET a=1, b=2;</pre>
<p>The difference between on duplicate key and replace is:<br />
‘Insert … on duplicate key update’ does an insert or an update.<br />
‘Replace’ does and insert with a possible delete first.</p>
<p><strong>INSERT … SELECT</strong><br />
This will insert rows from one or more tables into another table quickly, again to avoid the fact that you should write to queries to execute this.<br />
Use ‘ignored’ in the syntax to ignore duplicate-key violations</p>
<p><strong>LOAD DATA INFILE and SELECT … INTO OUTFILE</strong><br />
‘Load data infile’ will read data from a file into table at very high speed and ‘select into outfile’ will do the exact opposite, writing data from a table to a file.</p>
<p><strong>DELAYED</strong><br />
When you have users on your application that don’t have the time to wait this is a very handy option for the insert statement. It is generally known that the insert statement takes a lot of time during the execution of it, and with this option you can create the opportunity for your user to directly go on with other actions. The insert will only be queued until the table isn’t being used by another thread. Another benefit is that huge inserts can be executed at once and this will result in a much faster execution time.</p>
<div class="shr-publisher-527"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.devexp.eu/2009/03/31/forgotten-syntaxes-for-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>To reinforce our IT team, we are hiring a colleague (M/F)</title>
		<link>http://www.devexp.eu/2008/10/28/to-reinforce-our-it-team-we-are-hiring-a-colleague-mf/</link>
		<comments>http://www.devexp.eu/2008/10/28/to-reinforce-our-it-team-we-are-hiring-a-colleague-mf/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 09:41:26 +0000</pubDate>
		<dc:creator>van Rumste Kenneth</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[job]]></category>
		<category><![CDATA[step-a-site]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.devexp.eu/?p=203</guid>
		<description><![CDATA[As we are growing we are in need for a new junior developer to create and maintain websites. If you or someone you know is interested in this job feel free to contact us. The company is Step-@-Site and we &#8230; <a href="http://www.devexp.eu/2008/10/28/to-reinforce-our-it-team-we-are-hiring-a-colleague-mf/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><!--[endif]--></p>
<p class="MsoNormal"><a href="http://www.devexp.eu/wp-content/uploads/2008/10/stepasite.jpg"><img class="alignright size-medium wp-image-206" style="border: 0pt none; margin: 5px;" title="stepasite" src="http://www.devexp.eu/wp-content/uploads/2008/10/stepasite.jpg" alt="" width="150" height="60" /></a><span lang="EN-US">As we are growing we are in need for a new junior developer to create and maintain websites. If you or someone you know is interested in this job feel free to contact us. The company is Step-@-Site and we are located in Brussels (Vorst/Forest). Our portfolio contains websites/newsletters/intranet sites for small and big companies, for example; </span></p>
<ul>
<li><span lang="EN-US"><a href="http://www.euinkosovo.org/">www.euinkosovo.org</a></span></li>
<li><span lang="EN-US"><a href="http://www.aci-europe.org/">www.aci-europe.org</a><br />
</span></li>
<li><span lang="EN-US"><a href="http://www.perbio.com/">www.perbio.com</a> </span></li>
<li><span lang="EN-US"><a href="http://www.clouseau.be/">www.clouseau.be</a><br />
</span></li>
<li><span lang="EN-US">many others.</span></li>
</ul>
<p class="MsoNormal"><span lang="EN-US">Your profile:</span></p>
<p class="MsoNormal"><span lang="EN-US">- Bachelor studies in ICT (junior)<br />
- PHP, MySQL, ASP, JavaScript, HTML and CSS<br />
- Thinking in terms of performance, response time and usability of interfaces<br />
- Systematic and dedicated personality</span></p>
<p class="MsoNormal"><span lang="EN-US">Offer:</span></p>
<p class="MsoNormal"><span lang="EN-US">We offer an interesting salary and fringe benefits, linked to your personal competencies and your experience.</span></p>
<p class="MsoNormal"><span lang="EN-US">Feel free to contact me on kennethvr [AT] devexp [DOT] eu</span></p>
<div class="shr-publisher-203"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.devexp.eu/2008/10/28/to-reinforce-our-it-team-we-are-hiring-a-colleague-mf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Storing multiple data in 1 database field with PHP serialize / unserialize</title>
		<link>http://www.devexp.eu/2008/10/08/storing-multiple-data-in-1-database-field-with-php-serialize-unserialize/</link>
		<comments>http://www.devexp.eu/2008/10/08/storing-multiple-data-in-1-database-field-with-php-serialize-unserialize/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 10:45:47 +0000</pubDate>
		<dc:creator>Van de Voorde Toni</dc:creator>
				<category><![CDATA[database]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[serialize]]></category>

		<guid isPermaLink="false">http://www.devexp.eu/?p=163</guid>
		<description><![CDATA[While the serialize/unserialize functions exists since the early PHP 4 version, I ignored its existence. I discovered it recently doing some research on how to store multiple data in 1 database field. Before continuing, keep in mind that it&#8217;s not &#8230; <a href="http://www.devexp.eu/2008/10/08/storing-multiple-data-in-1-database-field-with-php-serialize-unserialize/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>While the serialize/unserialize functions exists since the early PHP 4 version, I ignored its existence. I discovered it recently doing some research on how to store multiple data in 1 database field.</p>
<p>Before continuing, keep in mind that it&#8217;s not always recommended to store multiple data in a database field, because it will be very difficult, if not impossible, to create queries using the inserted data. All serialized data will have to be unserialized, which takes time.</p>
<p>But why did I use it ?</p>
<p>The website I work on has a widget system (like netvibes and igoogle). Each widget has default settings that can be altered by a user. Those changes need to be saved in a database, so the next time the user loads the widget it will make use of the new settings.</p>
<p>When I first had to create this, I did not know of serialization in php, so I created the following db structure. (trying to respect DB Normalization).</p>
<div id="attachment_164" class="wp-caption aligncenter" style="width: 510px"><a href="http://www.devexp.eu/wp-content/uploads/2008/10/serialize-widgetsettings.png"><img class="size-full wp-image-164" title="widget and settings" src="http://www.devexp.eu/wp-content/uploads/2008/10/serialize-widgetsettings.png" alt="widget and settings" width="500" height="126" /></a><p class="wp-caption-text">widget and settings</p></div>
<p>You can see that I have a table with a list of widgets and a list of possible settings. Those two tables are connected to a widgetSetting table where the value of a setting to a widget is stored. It worked perfectly but it is not so proficient :</p>
<p>* To retrieve a widget&#8217;s settings, you need to join 2 tables.<br />
* To insert new widget settings, you need to check the settings table if a setting exists or not.<br />
* When updating widget settings, you need to check if a setting is still used or not.</p>
<p>This is a lot of work and database complexity for something that only is used for saving/retrieving settings of a widget. In my case it would be much better if I could save those settings in 1 field in the widget table.</p>
<div id="attachment_165" class="wp-caption aligncenter" style="width: 185px"><a href="http://www.devexp.eu/wp-content/uploads/2008/10/serialize-widget.png"><img class="size-full wp-image-165" title="widget" src="http://www.devexp.eu/wp-content/uploads/2008/10/serialize-widget.png" alt="widget" width="175" height="157" /></a><p class="wp-caption-text">widget</p></div>
<p>This is how I serialize my settings :</p>
<pre class="brush: php; title: ; notranslate">
$settings = array(
'itemsOnPage' =&gt; 30,
'showChart' =&gt; true,
'startDate' =&gt; '01-10-2008',
'endDate' =&gt; '31-10-2008'
);

$serializedSettings = serialize($settings);

/**
* outputs:
*
* a:4:{s:11:&quot;itemsOnPage&quot;;i:30;s:9:&quot;showChart&quot;;b:1;s:9:&quot;startDate&quot;;s:10:&quot;01-10-2008&quot;;s:7:&quot;endDate&quot;;s:10:&quot;31-10-2008&quot;;}
*
*/</pre>
<p>The serialize function will generate a storable representation of my array.<br />
Just save this string in a database field and the job is done. To rebuild the original array from this value you only need to call the unserialize function:</p>
<pre class="brush: php; title: ; notranslate"> $storedRepresentation = 'a:4:{s:11:&quot;itemsOnPage&quot;;i:30;s:9:&quot;showChart&quot;;b:1;s:9:&quot;startDate&quot;;s:10:&quot;01-10-2008&quot;;s:7:&quot;endDate&quot;;s:10:&quot;31-10-2008&quot;;}';
$settings = unserialize($storedRepresentation);

/*
* print_r($settings) would give :
*
* Array
* (
*  [itemsOnPage] =&gt; 30
*  [showChart] =&gt; 1
*  [startDate] =&gt; 01-10-2008
*  [endDate] =&gt; 31-10-2008
* )
*/</pre>
<p>As you can see the unserialize function correctly rebuild the original array.</p>
<p>It is also possible to serialize Objects with the exception of the built-in objects.</p>
<pre class="brush: php; title: ; notranslate">class MySettings {

private
$itemsOnPage = 30,
$showCart = true,
$startDate = '01-10-2008',
$endDate = '31-10-2008';

public function getItemsOnPage() {
return $this-&gt;itemsOnPage;
}
}

$mySettingsSerialized = serialize(new MySettings());

$mySettings = unserialize($mySettingsSerialized);

echo $mySettings-&gt;getItemsOnPage(); // 30</pre>
<p>When serializing objects, PHP will attempt to call the member function __sleep() prior to serialization. This is to allow the object to do any last minute clean-up, etc. prior to being serialized. Likewise, when the object is restored using unserialize() the __wakeup() member function is called.</p>
<pre class="brush: php; title: ; notranslate">class MySettings {

private
$itemsOnPage = 30,
$showCart = true,
$startDate = '01-10-2008',
$endDate = '31-10-2008';

public function getItemsOnPage() {
return $this-&gt;itemsOnPage;
}

public function __wakeup() {
$this-&gt;itemsOnPage *= 10;
}
}

$mySettingsSerialized = serialize(new MySettings());

$mySettings = unserialize($mySettingsSerialized);

echo $mySettings-&gt;getItemsOnPage(); // 300</pre>
<p>So you see it is very simple to use the seriailize/unserialize functions in php. But like I said in the beginning of the post, use it wisely when storing the serialized value in a database. I only use it when I do not need the value for creating sql queries.</p>
<div class="shr-publisher-163"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.devexp.eu/2008/10/08/storing-multiple-data-in-1-database-field-with-php-serialize-unserialize/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

