<?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/sql</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 24 Jul 2008 08:01:54 GMT</pubDate>
<item>
<title>(PHP) Utility PHP function to paginate SQL queries - cburyta</title>
<link>http://snipplr.com/view/5514/utility-php-function-to-paginate-sql-queries/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 20 Mar 2008 20:33:32 GMT</pubDate>
<guid>http://snipplr.com/view/5514/utility-php-function-to-paginate-sql-queries/</guid>
</item>
<item>
<title>(PHP) PHP escape for SQL - wbowers</title>
<link>http://snipplr.com/view/5331/php-escape-for-sql/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 09 Mar 2008 01:27:06 GMT</pubDate>
<guid>http://snipplr.com/view/5331/php-escape-for-sql/</guid>
</item>
<item>
<title>(PHP) PHP Symfony クリテリア サンプル - daisuke103</title>
<link>http://snipplr.com/view/5125/php-symfony--/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 19 Feb 2008 18:44:26 GMT</pubDate>
<guid>http://snipplr.com/view/5125/php-symfony--/</guid>
</item>
<item>
<title>(PHP) Build Nested Array From SQL - tylerhall</title>
<link>http://snipplr.com/view/4383/build-nested-array-from-sql/</link>
<description><![CDATA[ <p>During the time that I’ve been programming I’ve continually run into times when I needed to be able to store a multi-level list into a database and retrieve it. I’ve used this in a CMS system to allow uses to create and nest their own menu options or to allow users to create and nest categories of items. Saving it was never a problem, but retrieving it and building a PHP array with nested structure was a messy task. The problem was that you couldn’t easily enter a variable four levels deep into an array without knowing all of the parents of that item. This was okay if you retrieved the data in order of parents, but that meant if you wanted to sort the data by another column (such as name), you would have to do multiple passes through your data to continually reshuffle it.</p> ]]></description>
<pubDate>Wed, 19 Dec 2007 15:15:51 GMT</pubDate>
<guid>http://snipplr.com/view/4383/build-nested-array-from-sql/</guid>
</item>
<item>
<title>(PHP) Prevent SQL Injection - engel</title>
<link>http://snipplr.com/view/4205/prevent-sql-injection/</link>
<description><![CDATA[ <p>Pass a user-inputted variable to this function in order to prevent SQL injection. Example:

mysql_query("INSERT INTO table VALUES('" . sql_sanitize($_POST["variable") . "')");

Instead of:

mysql_query("INSERT INTO table VALUES('" . $_POST["variable"] . "'");</p> ]]></description>
<pubDate>Wed, 28 Nov 2007 09:25:01 GMT</pubDate>
<guid>http://snipplr.com/view/4205/prevent-sql-injection/</guid>
</item>
<item>
<title>(PHP) clean user input data ( GET, POST, COOKIE ) - peteypablonz</title>
<link>http://snipplr.com/view/4165/clean-user-input-data--get-post-cookie-/</link>
<description><![CDATA[ <p>Created for my own purposes, thought I'd share though ;)

copy paste at the top of your file and it does the magic :)</p> ]]></description>
<pubDate>Wed, 21 Nov 2007 03:57:32 GMT</pubDate>
<guid>http://snipplr.com/view/4165/clean-user-input-data--get-post-cookie-/</guid>
</item>
<item>
<title>(PHP) SQL_mysql - MartinY</title>
<link>http://snipplr.com/view/3320/sqlmysql/</link>
<description><![CDATA[ <p>Clase para generar SQL's complejas</p> ]]></description>
<pubDate>Thu, 19 Jul 2007 05:13:12 GMT</pubDate>
<guid>http://snipplr.com/view/3320/sqlmysql/</guid>
</item>
<item>
<title>(PHP) Get HTML list of Array Keys - drwitt</title>
<link>http://snipplr.com/view/2141/get-html-list-of-array-keys/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 08 Feb 2007 04:50:20 GMT</pubDate>
<guid>http://snipplr.com/view/2141/get-html-list-of-array-keys/</guid>
</item>
<item>
<title>(PHP) PHP - Limpiar inyección sql - nicolaspar</title>
<link>http://snipplr.com/view/1915/php--limpiar-inyeccin-sql/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 03 Jan 2007 11:03:13 GMT</pubDate>
<guid>http://snipplr.com/view/1915/php--limpiar-inyeccin-sql/</guid>
</item>
<item>
<title>(PHP) SELECT with conditional WHERE parts - assbach</title>
<link>http://snipplr.com/view/1806/select-with-conditional-where-parts/</link>
<description><![CDATA[ <p>Building a SELECT with conditional WHERE parts, given from form-get parameters.</p> ]]></description>
<pubDate>Fri, 15 Dec 2006 09:02:45 GMT</pubDate>
<guid>http://snipplr.com/view/1806/select-with-conditional-where-parts/</guid>
</item>
<item>
<title>(PHP) The Sterilizer - Vanish</title>
<link>http://snipplr.com/view/1764/the-sterilizer/</link>
<description><![CDATA[ <p>This function is used to cleanse user input data before creating queries to prevent SQL Injection attacks. This should also work to prevent XSS attempts through user input as well.</p> ]]></description>
<pubDate>Thu, 07 Dec 2006 11:58:00 GMT</pubDate>
<guid>http://snipplr.com/view/1764/the-sterilizer/</guid>
</item>
</channel>
</rss>