<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - engel</title>
<link>http://snipplr.com/users/engel/tags/function</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 16 Feb 2012 01:41:15 GMT</pubDate>
<item>
<title>(PHP) Function Template</title>
<link>http://snipplr.com/view/4206/function-template/</link>
<description><![CDATA[ <p>Add this template before functions in a library, in order to give a good description of what it is and what it does. Replace all in < and > with your values.</p> ]]></description>
<pubDate>Wed, 28 Nov 2007 09:33:03 GMT</pubDate>
<guid>http://snipplr.com/view/4206/function-template/</guid>
</item>
<item>
<title>(PHP) Prevent SQL Injection</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>
</channel>
</rss>
