<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.tcphp.org" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>TCPHP - Code Library</title>
 <link>http://www.tcphp.org/taxonomy/term/23/0</link>
 <description>Handy code snippets and tidbits
</description>
 <language>en</language>
<item>
 <title>Stripslashes and Addslashes MQGPC</title>
 <link>http://www.tcphp.org/resources/forum/stripslashes-and-addslashes-mqgpc</link>
 <description>&lt;p&gt;Most of the time when we are doing stripslashes and addslashes it is on data that may be using the magic_quotes_gpc.  Such data is put in $_GET, $_POST, $_COOKIE and may need to have slashes added or slashes stripped.  The following are two functions that helps with this, by checking the magic_quotes_gpc first:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;

&lt;/pre&gt;&lt;p&gt;&lt;/code&gt;&lt;/p&gt;
</description>
 <comments>http://www.tcphp.org/resources/forum/stripslashes-and-addslashes-mqgpc#comment</comments>
 <category domain="http://www.tcphp.org/taxonomy/term/23">Code Library</category>
 <pubDate>Fri, 03 Jun 2005 12:27:28 -0500</pubDate>
 <dc:creator>ltp</dc:creator>
 <guid isPermaLink="false">151 at http://www.tcphp.org</guid>
</item>
<item>
 <title>Create an array from a recordset</title>
 <link>http://www.tcphp.org/resources/forum/create-an-array-from-a-recordset</link>
 <description>&lt;p&gt;&lt;code&gt;&lt;br /&gt;
/**&lt;br /&gt;
 * Takes a record set given the keyname and the value name&lt;br /&gt;
 * and turns it into an array&lt;br /&gt;
 *&lt;br /&gt;
 * @access public&lt;br /&gt;
 * @param array $array&lt;br /&gt;
 * @param string $keyName&lt;br /&gt;
 * @param string $valueName&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.tcphp.org/resources/forum/create-an-array-from-a-recordset&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.tcphp.org/resources/forum/create-an-array-from-a-recordset#comment</comments>
 <category domain="http://www.tcphp.org/taxonomy/term/23">Code Library</category>
 <pubDate>Thu, 02 Jun 2005 11:45:35 -0500</pubDate>
 <dc:creator>ltp</dc:creator>
 <guid isPermaLink="false">149 at http://www.tcphp.org</guid>
</item>
<item>
 <title>Create a multi-dimensional array from a recordset.</title>
 <link>http://www.tcphp.org/resources/forum/create-a-multi-dimensional-array-from-a-recordset</link>
 <description>&lt;p&gt;&lt;code&gt;&lt;br /&gt;
/**&lt;br /&gt;
 * Takes a record set given the keyname and the value name&lt;br /&gt;
 * and turns it into an array&lt;br /&gt;
 *&lt;br /&gt;
 * @access public&lt;br /&gt;
 * @param array $array&lt;br /&gt;
 * @param string $keyName&lt;br /&gt;
 * @param string $valueName&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.tcphp.org/resources/forum/create-a-multi-dimensional-array-from-a-recordset&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.tcphp.org/resources/forum/create-a-multi-dimensional-array-from-a-recordset#comment</comments>
 <category domain="http://www.tcphp.org/taxonomy/term/23">Code Library</category>
 <pubDate>Thu, 02 Jun 2005 11:41:54 -0500</pubDate>
 <dc:creator>ltp</dc:creator>
 <guid isPermaLink="false">148 at http://www.tcphp.org</guid>
</item>
</channel>
</rss>
