<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/php/tags/data</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 15 Feb 2012 06:28:14 GMT</pubDate>
<item>
<title>(PHP) SessCacher: Class for caching data through php session - TimoZachi</title>
<link>http://snipplr.com/view/58628/sesscacher-class-for-caching-data-through-php-session/</link>
<description><![CDATA[ <p>This is a custom class for caching results through php's session. The class can be used to cache anything, but i use it to cache mysql results so i don't have to get all the time the results by querying MySQL (wich may take a long time, especialy if  MySQL's server is not the same as PHP's server), increasing enormously performance. Since the database is in constant actualization, there is an optional parameter to limit the maximun number of times you want to reuse the cached data. The class is well commented with an example on how to use it bellow.</p> ]]></description>
<pubDate>Tue, 13 Sep 2011 05:47:46 GMT</pubDate>
<guid>http://snipplr.com/view/58628/sesscacher-class-for-caching-data-through-php-session/</guid>
</item>
<item>
<title>(PHP) Request data from apprequest facebook api - serialk89</title>
<link>http://snipplr.com/view/57517/request-data-from-apprequest-facebook-api/</link>
<description><![CDATA[ <p>Rescatamos los datos que pasamos por apprequest .</p> ]]></description>
<pubDate>Tue, 02 Aug 2011 16:56:51 GMT</pubDate>
<guid>http://snipplr.com/view/57517/request-data-from-apprequest-facebook-api/</guid>
</item>
<item>
<title>(PHP) Request data from URL iframe Facebook app - serialk89</title>
<link>http://snipplr.com/view/57508/request-data-from-url-iframe-facebook-app/</link>
<description><![CDATA[ <p>Rescato variables desde un iframe con $signed_request</p> ]]></description>
<pubDate>Tue, 02 Aug 2011 13:06:14 GMT</pubDate>
<guid>http://snipplr.com/view/57508/request-data-from-url-iframe-facebook-app/</guid>
</item>
<item>
<title>(PHP) Simple inline PHP alternating rows - FatFolderDesigner</title>
<link>http://snipplr.com/view/56219/simple-inline-php-alternating-rows/</link>
<description><![CDATA[ <p>Traditionally when you have lost lists of dat you want to alternate rows for usability. The first thing everybody makes to fix this is a simple if statement loop, but this adds a number of lines and is hardly a clean solution. Additionally it required you to have a “counter” or “switch” variable, usually placed at the bottom of the loop, overall very messy.

I had a boss who thought he was on the cutting edge by compressing the traditional if statement into a shorthand version (saving 2-3 lines of code), but the system was still using a $class variable and still requires a counting or switch variable. It was still a mess and added clutter to the code.

Earlier today I was working on outputting client records forafully customized application. Wanting to avoid such messy code as I looked for a better solution and with a little tweaking and playing I came up with this.

I've also included a simple example of how it's used in action. If you have any questions or concerns let me know either here or at the link (there's some more info about this method there too if your intreated).</p> ]]></description>
<pubDate>Thu, 07 Jul 2011 12:24:00 GMT</pubDate>
<guid>http://snipplr.com/view/56219/simple-inline-php-alternating-rows/</guid>
</item>
<item>
<title>(PHP) Encrypting sensitive data - olemedia</title>
<link>http://snipplr.com/view/54798/encrypting-sensitive-data/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 03 Jun 2011 00:29:47 GMT</pubDate>
<guid>http://snipplr.com/view/54798/encrypting-sensitive-data/</guid>
</item>
<item>
<title>(PHP) Get Twitter Data using twitter API - kangcom</title>
<link>http://snipplr.com/view/47899/get-twitter-data-using-twitter-api/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 26 Jan 2011 17:25:39 GMT</pubDate>
<guid>http://snipplr.com/view/47899/get-twitter-data-using-twitter-api/</guid>
</item>
<item>
<title>(PHP) gets the data from a URL - fackz</title>
<link>http://snipplr.com/view/45261/gets-the-data-from-a-url/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 04 Dec 2010 08:18:44 GMT</pubDate>
<guid>http://snipplr.com/view/45261/gets-the-data-from-a-url/</guid>
</item>
<item>
<title>(PHP) Zend Data Mapping example - nikefido</title>
<link>http://snipplr.com/view/45183/zend-data-mapping-example/</link>
<description><![CDATA[ <p>Example set of files for data mapping objects to db records. (Not perfect, but funcional)</p> ]]></description>
<pubDate>Fri, 03 Dec 2010 03:05:39 GMT</pubDate>
<guid>http://snipplr.com/view/45183/zend-data-mapping-example/</guid>
</item>
<item>
<title>(PHP) data sanitization - sadus</title>
<link>http://snipplr.com/view/43663/data-sanitization/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 06 Nov 2010 01:21:55 GMT</pubDate>
<guid>http://snipplr.com/view/43663/data-sanitization/</guid>
</item>
<item>
<title>(PHP) Wordpress | Get All Meta Data - mattkenefick</title>
<link>http://snipplr.com/view/42086/wordpress--get-all-meta-data/</link>
<description><![CDATA[ <p>Gets all meta data keys/values for a particular post</p> ]]></description>
<pubDate>Tue, 12 Oct 2010 05:58:53 GMT</pubDate>
<guid>http://snipplr.com/view/42086/wordpress--get-all-meta-data/</guid>
</item>
<item>
<title>(PHP) CakePHP - Dynamic Model - stolkchris</title>
<link>http://snipplr.com/view/40763/cakephp--dynamic-model/</link>
<description><![CDATA[ <p>A small snippet on how to create a dynamic model in CakePHP (useful for global functions that need a model to function. IE functions defined in the AppController</p> ]]></description>
<pubDate>Sun, 19 Sep 2010 20:46:38 GMT</pubDate>
<guid>http://snipplr.com/view/40763/cakephp--dynamic-model/</guid>
</item>
<item>
<title>(PHP) How to use Google HTTP Geocoding - adampatterson</title>
<link>http://snipplr.com/view/40167/how-to-use-google-http-geocoding/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 09 Sep 2010 01:59:08 GMT</pubDate>
<guid>http://snipplr.com/view/40167/how-to-use-google-http-geocoding/</guid>
</item>
<item>
<title>(PHP) PHP MySql Class - Myrddin</title>
<link>http://snipplr.com/view/35703/php-mysql-class/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 12 Jun 2010 11:40:29 GMT</pubDate>
<guid>http://snipplr.com/view/35703/php-mysql-class/</guid>
</item>
<item>
<title>(PHP) Function for putting data to the html table [two different ways] - kirik</title>
<link>http://snipplr.com/view/18106/function-for-putting-data-to-the-html-table-two-different-ways/</link>
<description><![CDATA[ <p>This function is very helpfull when you need to put some data (that was gotten from database) to HTML table. You can choose vertical or horizontal types.

**Horizontal type:**

| 1 | 2 | 3 |

| 4 | 5 | 6 |

| 7 | 8 | 9 |

**Vertical type:**

| 1 | 4 | 7 |

| 2 | 5 | 8 |

| 3 | 6 | 9 |


* hope you will sort it out (:</p> ]]></description>
<pubDate>Sun, 09 Aug 2009 16:32:59 GMT</pubDate>
<guid>http://snipplr.com/view/18106/function-for-putting-data-to-the-html-table-two-different-ways/</guid>
</item>
<item>
<title>(PHP) PHP/MySQL - Get Table Data - kilrizzy</title>
<link>http://snipplr.com/view/15464/phpmysql--get-table-data/</link>
<description><![CDATA[ <p>Use this function to print out all the rows in a table. Specify columns to show using the columnstring parameter:
tablulardata(tablename, columnstring);
ie:
tabluardata("users","username=Username|fname=First Name|lname=Last Name");</p> ]]></description>
<pubDate>Tue, 02 Jun 2009 14:28:39 GMT</pubDate>
<guid>http://snipplr.com/view/15464/phpmysql--get-table-data/</guid>
</item>
<item>
<title>(PHP) PHP/MySQL - Get Row Data - kilrizzy</title>
<link>http://snipplr.com/view/15462/phpmysql--get-row-data/</link>
<description><![CDATA[ <p>Use this function to pull all columns from a single database field.
getrowdata(tablename,rowid,prefix);

You would call this function like: 
getrowdata("users",$_SESSION['user'],"user_");

The prefix is the prefix you want for the array names, so if I have a field in my "users" table called "username", the example above would output the variable "$user_username = 'data';"</p> ]]></description>
<pubDate>Tue, 02 Jun 2009 12:57:06 GMT</pubDate>
<guid>http://snipplr.com/view/15462/phpmysql--get-row-data/</guid>
</item>
<item>
<title>(PHP) Clean Input - fackz</title>
<link>http://snipplr.com/view/13495/clean-input/</link>
<description><![CDATA[ <p>Stripping out malicious code</p> ]]></description>
<pubDate>Thu, 26 Mar 2009 23:02:16 GMT</pubDate>
<guid>http://snipplr.com/view/13495/clean-input/</guid>
</item>
<item>
<title>(PHP) Formatar Data e Hora Portugues - fackz</title>
<link>http://snipplr.com/view/12723/formatar-data-e-hora-portugues/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 02 Mar 2009 09:36:09 GMT</pubDate>
<guid>http://snipplr.com/view/12723/formatar-data-e-hora-portugues/</guid>
</item>
<item>
<title>(PHP) Formatar data em portugues por extenso - fackz</title>
<link>http://snipplr.com/view/12722/formatar-data-em-portugues-por-extenso/</link>
<description><![CDATA[ <p>Para utilizar, proceda assim:

echo formata_data_extenso('2007-04-17');
echo formata_data_extenso('2007-04-17 15:20:35');</p> ]]></description>
<pubDate>Mon, 02 Mar 2009 09:34:49 GMT</pubDate>
<guid>http://snipplr.com/view/12722/formatar-data-em-portugues-por-extenso/</guid>
</item>
<item>
<title>(PHP) Get The Inside String - Unreal</title>
<link>http://snipplr.com/view/12677/get-the-inside-string/</link>
<description><![CDATA[ <p>Using this you can get the inside string from another given string. Great for scraping data from other sites.</p> ]]></description>
<pubDate>Sat, 28 Feb 2009 18:49:37 GMT</pubDate>
<guid>http://snipplr.com/view/12677/get-the-inside-string/</guid>
</item>
</channel>
</rss>
