<?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>Cerebral Backup</title>
	<atom:link href="http://cerebralbackup.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://cerebralbackup.wordpress.com</link>
	<description>Memory? Input, store, retieve.</description>
	<lastBuildDate>Mon, 27 Oct 2008 10:21:53 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='cerebralbackup.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/98a4de797c656aaeb53e2e45da5d39d3?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Cerebral Backup</title>
		<link>http://cerebralbackup.wordpress.com</link>
	</image>
			<item>
		<title>CJK Characters Displaying Incorrectly</title>
		<link>http://cerebralbackup.wordpress.com/2008/07/08/cjk-characters-displaying-incorrectly/</link>
		<comments>http://cerebralbackup.wordpress.com/2008/07/08/cjk-characters-displaying-incorrectly/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 07:10:46 +0000</pubDate>
		<dc:creator>Euri</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://cerebralbackup.wordpress.com/?p=22</guid>
		<description><![CDATA[When I tried retrieving something with CJK characters from my database (e.g. こんにちは!), they displayed as ???? characters. But when I checked the actual database, the characters were written as in CJK characters (こんにちは!). I looked for a solution and I found out that I need to add this line below my database connection:
mysql_query("SET NAMES [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cerebralbackup.wordpress.com&blog=2525542&post=22&subd=cerebralbackup&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>When I tried retrieving something with CJK characters from my database (e.g. こんにちは!), they displayed as ???? characters. But when I checked the actual database, the characters were written as in CJK characters (こんにちは!). I looked for a solution and I found out that I need to add this line below my database connection:</p>
<p><code>mysql_query("SET NAMES 'utf8'");</code></p>
<p>So, it would probably look something like this:</p>
<p><code>$dbconnect = mysql_connect('localhost', 'username', 'password');<br />
if (!$dbconnect) die(mysql_error());<br />
mysql_select_db('dbname');</code></p>
<p>mysql_query(&#8220;SET NAMES &#8216;utf8&#8242;&#8221;);</p>
<p>An ultra short summary explanation for this, according to that long article I read, MSQL databases tend to have a <strong>latin1</strong> charset set as a default and it needs to be changed to <strong>utf8</strong> to make it work.</p>
<p>Another thing is that in your database table&#8217;s <strong>Collation</strong>, you should find a <strong>utf8_general_ci</strong> instead of a <strong>latin1_swedish_ci</strong> one.</p>
<p>&#8211;</p>
<p>PS: I love you google!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cerebralbackup.wordpress.com/22/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cerebralbackup.wordpress.com/22/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cerebralbackup.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cerebralbackup.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cerebralbackup.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cerebralbackup.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cerebralbackup.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cerebralbackup.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cerebralbackup.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cerebralbackup.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cerebralbackup.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cerebralbackup.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cerebralbackup.wordpress.com&blog=2525542&post=22&subd=cerebralbackup&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cerebralbackup.wordpress.com/2008/07/08/cjk-characters-displaying-incorrectly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/660128402a3cab76a7891e70a804ee56?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">euri</media:title>
		</media:content>
	</item>
		<item>
		<title>Flash Overlaps CSS DIV</title>
		<link>http://cerebralbackup.wordpress.com/2008/05/07/flash-overlaps-css-div/</link>
		<comments>http://cerebralbackup.wordpress.com/2008/05/07/flash-overlaps-css-div/#comments</comments>
		<pubDate>Wed, 07 May 2008 09:46:49 +0000</pubDate>
		<dc:creator>Euri</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://cerebralbackup.wordpress.com/?p=21</guid>
		<description><![CDATA[The flash thingy is overlapping my CSS div! TASKETE~!
Solution? In your flash object code, add these parameters:
&#60;param name="quality" value="high" /&#62;
&#60;param name="wmode" value="transparent" /&#62;
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cerebralbackup.wordpress.com&blog=2525542&post=21&subd=cerebralbackup&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The flash thingy is overlapping my CSS div! TASKETE~!</p>
<p>Solution? In your flash object code, add these parameters:</p>
<p><code>&lt;param name="quality" value="high" /&gt;<br />
&lt;param name="wmode" value="transparent" /&gt;</code></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cerebralbackup.wordpress.com/21/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cerebralbackup.wordpress.com/21/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cerebralbackup.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cerebralbackup.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cerebralbackup.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cerebralbackup.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cerebralbackup.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cerebralbackup.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cerebralbackup.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cerebralbackup.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cerebralbackup.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cerebralbackup.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cerebralbackup.wordpress.com&blog=2525542&post=21&subd=cerebralbackup&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cerebralbackup.wordpress.com/2008/05/07/flash-overlaps-css-div/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/660128402a3cab76a7891e70a804ee56?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">euri</media:title>
		</media:content>
	</item>
		<item>
		<title>Random Output In a Query</title>
		<link>http://cerebralbackup.wordpress.com/2007/12/20/random-output-in-a-query/</link>
		<comments>http://cerebralbackup.wordpress.com/2007/12/20/random-output-in-a-query/#comments</comments>
		<pubDate>Thu, 20 Dec 2007 08:49:00 +0000</pubDate>
		<dc:creator>Euri</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://cerebralbackup.wordpress.com/2007/12/20/random-output-in-a-query/</guid>
		<description><![CDATA[You can randomize your output in a query using the ORDER BY rand()
Example:
SELECT DISTINCT a.f_user_id, c.f_username,
...
AND b.f_bid_transaction_id is not null
ORDER BY rand()
LIMIT 30
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cerebralbackup.wordpress.com&blog=2525542&post=6&subd=cerebralbackup&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>You can randomize your output in a query using the <code>ORDER BY rand()</code></p>
<p>Example:</p>
<p><code>SELECT DISTINCT a.f_user_id, c.f_username,<br />
...<br />
AND b.f_bid_transaction_id is not null<br />
<b>ORDER BY rand()</b><br />
LIMIT 30</code></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cerebralbackup.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cerebralbackup.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cerebralbackup.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cerebralbackup.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cerebralbackup.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cerebralbackup.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cerebralbackup.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cerebralbackup.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cerebralbackup.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cerebralbackup.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cerebralbackup.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cerebralbackup.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cerebralbackup.wordpress.com&blog=2525542&post=6&subd=cerebralbackup&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cerebralbackup.wordpress.com/2007/12/20/random-output-in-a-query/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/660128402a3cab76a7891e70a804ee56?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">euri</media:title>
		</media:content>
	</item>
		<item>
		<title>WHERE NOT EXISTS</title>
		<link>http://cerebralbackup.wordpress.com/2007/12/20/where-not-exists/</link>
		<comments>http://cerebralbackup.wordpress.com/2007/12/20/where-not-exists/#comments</comments>
		<pubDate>Thu, 20 Dec 2007 07:08:00 +0000</pubDate>
		<dc:creator>Euri</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://cerebralbackup.wordpress.com/2007/12/20/where-not-exists/</guid>
		<description><![CDATA[In this godly world of MySQL, there&#8217;s exist this thing called WHERE NOT EXISTS who helped the stupid &#8216;ol me to select the things that weren&#8217;t there.  Literally. This, all thanks to my guru of a colleague, Drew.
Example:
SELECT DISTINCT a.f_user_id, b.f_username, b.f_firstname,
b.f_lastname, b.f_added,
(SELECT f_raffle_number
FROM t_model_raffle
WHERE f_user_id = a.f_user_id
AND f_date &#62;= '2007-12-10'
AND f_date &#60;= '2007-12-21'
LIMIT [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cerebralbackup.wordpress.com&blog=2525542&post=5&subd=cerebralbackup&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In this godly world of MySQL, there&#8217;s exist this thing called <b>WHERE NOT EXISTS</b> who helped the stupid &#8216;ol me to select the things that weren&#8217;t there.  Literally. This, all thanks to my guru of a colleague, <a href="http://drew.ph/">Drew</a>.</p>
<p>Example:<br />
<code>SELECT DISTINCT a.f_user_id, b.f_username, b.f_firstname,<br />
b.f_lastname, b.f_added,<br />
(SELECT f_raffle_number<br />
FROM t_model_raffle<br />
WHERE f_user_id = a.f_user_id<br />
AND f_date &gt;= '2007-12-10'<br />
AND f_date &lt;= '2007-12-21'<br />
LIMIT 0,1)<br />
AS f_raffle_number,<br />
(SELECT f_date<br />
FROM t_model_raffle<br />
WHERE f_user_id = a.f_user_id limit 0,1)<br />
AS f_date, b.f_birthdate, b.f_sex<br />
FROM t_model_raffle a<br />
INNER JOIN t_user_profile b<br />
ON b.f_user_id = a.f_user_id<br />
<b>WHERE NOT EXISTS</b><br />
(SELECT b.f_user_id<br />
FROM t_buy_transaction c<br />
WHERE a.f_user_id = c.f_user_id)</code></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cerebralbackup.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cerebralbackup.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cerebralbackup.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cerebralbackup.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cerebralbackup.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cerebralbackup.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cerebralbackup.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cerebralbackup.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cerebralbackup.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cerebralbackup.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cerebralbackup.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cerebralbackup.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cerebralbackup.wordpress.com&blog=2525542&post=5&subd=cerebralbackup&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cerebralbackup.wordpress.com/2007/12/20/where-not-exists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/660128402a3cab76a7891e70a804ee56?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">euri</media:title>
		</media:content>
	</item>
		<item>
		<title>3 Tables in 1 Query</title>
		<link>http://cerebralbackup.wordpress.com/2007/12/19/3-tables-in-1-query/</link>
		<comments>http://cerebralbackup.wordpress.com/2007/12/19/3-tables-in-1-query/#comments</comments>
		<pubDate>Wed, 19 Dec 2007 06:00:00 +0000</pubDate>
		<dc:creator>Euri</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://cerebralbackup.wordpress.com/2007/12/19/3-tables-in-1-query/</guid>
		<description><![CDATA[You can get data from 3 tables at the same time all in 1 query.
SELECT DISTINCT a.f_user_id, c.f_username, a.f_raffle_number
FROM t_model_raffle a
INNER JOIN t_buy_transaction b
ON b.f_user_id = a.f_user_id
INNER JOIN t_user_profile c
ON c.f_user_id = a.f_user_id
WHERE b.f_status = 'Completed';
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cerebralbackup.wordpress.com&blog=2525542&post=4&subd=cerebralbackup&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>You can get data from 3 tables at the same time all in 1 query.</p>
<p><code>SELECT DISTINCT a.f_user_id, c.f_username, a.f_raffle_number<br />
FROM t_model_raffle a<br />
INNER JOIN t_buy_transaction b<br />
ON b.f_user_id = a.f_user_id<br />
INNER JOIN t_user_profile c<br />
ON c.f_user_id = a.f_user_id<br />
WHERE b.f_status = 'Completed';</code></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cerebralbackup.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cerebralbackup.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cerebralbackup.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cerebralbackup.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cerebralbackup.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cerebralbackup.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cerebralbackup.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cerebralbackup.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cerebralbackup.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cerebralbackup.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cerebralbackup.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cerebralbackup.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cerebralbackup.wordpress.com&blog=2525542&post=4&subd=cerebralbackup&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cerebralbackup.wordpress.com/2007/12/19/3-tables-in-1-query/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/660128402a3cab76a7891e70a804ee56?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">euri</media:title>
		</media:content>
	</item>
		<item>
		<title>Additional Array Field</title>
		<link>http://cerebralbackup.wordpress.com/2007/12/09/additional-array-field/</link>
		<comments>http://cerebralbackup.wordpress.com/2007/12/09/additional-array-field/#comments</comments>
		<pubDate>Sun, 09 Dec 2007 05:23:00 +0000</pubDate>
		<dc:creator>Euri</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://cerebralbackup.wordpress.com/2007/12/09/additional-array-field/</guid>
		<description><![CDATA[You can add a new array field in the existing array result of the query using PHP.
Original Array Result:
[0] =&#62; Array (
[f_user_id] =&#62; 20250
[f_username] =&#62; yoshikihayashi
[f_firstname] =&#62; Yoshiki
[f_lastname] =&#62; Hayashi
[f_added] =&#62; 2006-08-25 16:39:00
[f_raffle_number] =&#62; 1543833569
[f_date] =&#62; 2007-12-18 13:00:59
[f_birthdate] =&#62; 1965-11-20
[f_sex] =&#62; M
)
[1] =&#62; Array  (
[f_user_id] =&#62; 1026318
[f_username] =&#62; gacktcamui
[f_firstname] =&#62; Gackt
[f_lastname] =&#62; Camui
[f_added] =&#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cerebralbackup.wordpress.com&blog=2525542&post=3&subd=cerebralbackup&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>You can add a new array field in the existing array result of the query using PHP.</p>
<p>Original Array Result:</p>
<p><code>[0] =&gt; Array (<br />
[f_user_id] =&gt; 20250<br />
[f_username] =&gt; yoshikihayashi<br />
[f_firstname] =&gt; Yoshiki<br />
[f_lastname] =&gt; Hayashi<br />
[f_added] =&gt; 2006-08-25 16:39:00<br />
[f_raffle_number] =&gt; 1543833569<br />
[f_date] =&gt; 2007-12-18 13:00:59<br />
[f_birthdate] =&gt; 1965-11-20<br />
[f_sex] =&gt; M<br />
)<br />
[1] =&gt; Array  (<br />
[f_user_id] =&gt; 1026318<br />
[f_username] =&gt; gacktcamui<br />
[f_firstname] =&gt; Gackt<br />
[f_lastname] =&gt; Camui<br />
[f_added] =&gt; 2007-12-09 18:16:48<br />
[f_raffle_number] =&gt; 1215771422<br />
[f_date] =&gt; 2007-12-18 13:00:59<br />
[f_birthdate] =&gt; 1968-07-04<br />
[f_sex] =&gt; M<br />
)</code></p>
<p>Procedure:</p>
<p><code>for($i=0;$i&lt;count($pagevars['winnersbuy']);$i++):<br />
$bday = $pageVars['winnersBuy'][$i]['f_birthdate'];<br />
$age = $this-&gt;$birthday("$bday");<br />
$pageVars['winnersBuy'][$i]['f_age'] = "$age";<br />
endfor;</code></p>
<p>Output:</p>
<p><code>[0] =&gt; Array  (<br />
[f_user_id] =&gt; 20250<br />
[f_username] =&gt; yoshikihayashi<br />
[f_firstname] =&gt; Yoshiki<br />
[f_lastname] =&gt; Hayashi<br />
[f_added] =&gt; 2006-08-25 16:39:00<br />
[f_raffle_number] =&gt; 1543833569<br />
[f_date] =&gt; 2007-12-18 13:00:59<br />
[f_birthdate] =&gt; 1965-11-20<br />
[f_sex] =&gt; M<br />
[f_age] =&gt; 42<br />
)<br />
[1] =&gt; Array  (<br />
[f_user_id] =&gt; 1026318<br />
[f_username] =&gt; gacktcamui<br />
[f_firstname] =&gt; Gackt<br />
[f_lastname] =&gt; Camui<br />
[f_added] =&gt; 2007-12-09 18:16:48<br />
[f_raffle_number] =&gt; 1215771422<br />
[f_date] =&gt; 2007-12-18 13:00:59<br />
[f_birthdate] =&gt; 1968-07-04<br />
[f_sex] =&gt; M<br />
[f_age] =&gt; 35<br />
)</code></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cerebralbackup.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cerebralbackup.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cerebralbackup.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cerebralbackup.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cerebralbackup.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cerebralbackup.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cerebralbackup.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cerebralbackup.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cerebralbackup.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cerebralbackup.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cerebralbackup.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cerebralbackup.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cerebralbackup.wordpress.com&blog=2525542&post=3&subd=cerebralbackup&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cerebralbackup.wordpress.com/2007/12/09/additional-array-field/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/660128402a3cab76a7891e70a804ee56?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">euri</media:title>
		</media:content>
	</item>
		<item>
		<title>Opacity</title>
		<link>http://cerebralbackup.wordpress.com/2007/08/26/opacity/</link>
		<comments>http://cerebralbackup.wordpress.com/2007/08/26/opacity/#comments</comments>
		<pubDate>Sun, 26 Aug 2007 14:08:54 +0000</pubDate>
		<dc:creator>Euri</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://cerebralbackup.wordpress.com/2007/08/26/opacity/</guid>
		<description><![CDATA[It works on all browsers except IE6. Because IE sucks!
filter:alpha(opacity=25);
-moz-opacity:.25;
opacity:.25;
&#8211;
From my codix.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cerebralbackup.wordpress.com&blog=2525542&post=9&subd=cerebralbackup&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>It works on all browsers except IE6. Because IE sucks!</p>
<p><code>filter:alpha(opacity=25);<br />
-moz-opacity:.25;<br />
opacity:.25;</code></p>
<p>&#8211;<br />
From my codix.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cerebralbackup.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cerebralbackup.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cerebralbackup.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cerebralbackup.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cerebralbackup.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cerebralbackup.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cerebralbackup.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cerebralbackup.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cerebralbackup.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cerebralbackup.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cerebralbackup.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cerebralbackup.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cerebralbackup.wordpress.com&blog=2525542&post=9&subd=cerebralbackup&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cerebralbackup.wordpress.com/2007/08/26/opacity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/660128402a3cab76a7891e70a804ee56?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">euri</media:title>
		</media:content>
	</item>
		<item>
		<title>Links In and/or Out of Site</title>
		<link>http://cerebralbackup.wordpress.com/2007/08/26/links-in-andor-out-of-site/</link>
		<comments>http://cerebralbackup.wordpress.com/2007/08/26/links-in-andor-out-of-site/#comments</comments>
		<pubDate>Sun, 26 Aug 2007 14:08:49 +0000</pubDate>
		<dc:creator>Euri</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://cerebralbackup.wordpress.com/2008/01/15/links-in-andor-out-of-site/</guid>
		<description><![CDATA[Due to power of CSS3 (yes, no IE6 again, because IE sucks), you can have an specific style for all links that belonged to a specific domain of your choice.
a[href*="http"] {
}
Example:
a[href*="www.beyondeternal.com"] {
}
&#8211;
From my codix.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cerebralbackup.wordpress.com&blog=2525542&post=12&subd=cerebralbackup&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Due to power of CSS3 (yes, no IE6 again, because IE sucks), you can have an specific style for all links that belonged to a specific domain of your choice.</p>
<p><code>a[href*="http"] {</p>
<p>}</code></p>
<p>Example:</p>
<p><code>a[href*="www.beyondeternal.com"] {</p>
<p>}</code></p>
<p>&#8211;<br />
From my codix.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cerebralbackup.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cerebralbackup.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cerebralbackup.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cerebralbackup.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cerebralbackup.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cerebralbackup.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cerebralbackup.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cerebralbackup.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cerebralbackup.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cerebralbackup.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cerebralbackup.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cerebralbackup.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cerebralbackup.wordpress.com&blog=2525542&post=12&subd=cerebralbackup&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cerebralbackup.wordpress.com/2007/08/26/links-in-andor-out-of-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/660128402a3cab76a7891e70a804ee56?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">euri</media:title>
		</media:content>
	</item>
		<item>
		<title>Truncates Words</title>
		<link>http://cerebralbackup.wordpress.com/2007/08/26/truncates-words/</link>
		<comments>http://cerebralbackup.wordpress.com/2007/08/26/truncates-words/#comments</comments>
		<pubDate>Sun, 26 Aug 2007 14:08:45 +0000</pubDate>
		<dc:creator>Euri</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://cerebralbackup.wordpress.com/2007/08/26/truncates-words/</guid>
		<description><![CDATA[This code truncates the sentence into specified number of words.
//-- truncates entries
$entry = "This is where the long entry is placed.";
$words = split(" ",$entry);
$excerpt = join(" ",array_slice($words,0,50));
echo $excerpt;
echo " [more]";
&#8211;
From my codix.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cerebralbackup.wordpress.com&blog=2525542&post=14&subd=cerebralbackup&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This code truncates the sentence into specified number of words.</p>
<p><code>//-- truncates entries<br />
$entry = "This is where the long entry is placed.";<br />
$words = split(" ",$entry);<br />
$excerpt = join(" ",array_slice($words,0,50));<br />
echo $excerpt;<br />
echo " [more]";</code></p>
<p>&#8211;<br />
From my codix.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cerebralbackup.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cerebralbackup.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cerebralbackup.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cerebralbackup.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cerebralbackup.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cerebralbackup.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cerebralbackup.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cerebralbackup.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cerebralbackup.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cerebralbackup.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cerebralbackup.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cerebralbackup.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cerebralbackup.wordpress.com&blog=2525542&post=14&subd=cerebralbackup&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cerebralbackup.wordpress.com/2007/08/26/truncates-words/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/660128402a3cab76a7891e70a804ee56?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">euri</media:title>
		</media:content>
	</item>
		<item>
		<title>Scrollbar (All browser)</title>
		<link>http://cerebralbackup.wordpress.com/2007/08/26/ie-hack/</link>
		<comments>http://cerebralbackup.wordpress.com/2007/08/26/ie-hack/#comments</comments>
		<pubDate>Sun, 26 Aug 2007 14:08:41 +0000</pubDate>
		<dc:creator>Euri</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://cerebralbackup.wordpress.com/2007/08/26/ie-hack/</guid>
		<description><![CDATA[Want a vertical scrollbar? Use this:
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
&#8211;
From my codix.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cerebralbackup.wordpress.com&blog=2525542&post=8&subd=cerebralbackup&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Want a vertical scrollbar? Use this:</p>
<p><code>overflow: -moz-scrollbars-vertical;<br />
overflow-y: scroll;</code></p>
<p>&#8211;<br />
From my codix.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cerebralbackup.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cerebralbackup.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cerebralbackup.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cerebralbackup.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cerebralbackup.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cerebralbackup.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cerebralbackup.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cerebralbackup.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cerebralbackup.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cerebralbackup.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cerebralbackup.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cerebralbackup.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cerebralbackup.wordpress.com&blog=2525542&post=8&subd=cerebralbackup&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cerebralbackup.wordpress.com/2007/08/26/ie-hack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/660128402a3cab76a7891e70a804ee56?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">euri</media:title>
		</media:content>
	</item>
	</channel>
</rss>