<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Fast and easy PHP MySQL Class</title>
	<atom:link href="http://mbe.ro/2009/08/30/fast-and-easy-php-mysql-class/feed/" rel="self" type="application/rss+xml" />
	<link>http://mbe.ro/2009/08/30/fast-and-easy-php-mysql-class/</link>
	<description>&#34;mbe - web developers&#34; is an amazing team of web developers based in Bucharest, Romania. We develop simple and complex websites emphasizing on user experience and quality.</description>
	<lastBuildDate>Tue, 22 Nov 2011 13:51:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: John</title>
		<link>http://mbe.ro/2009/08/30/fast-and-easy-php-mysql-class/comment-page-1/#comment-3362</link>
		<dc:creator>John</dc:creator>
		<pubDate>Tue, 22 Nov 2011 13:51:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.mbe.ro/?p=114#comment-3362</guid>
		<description>Really nice one I&#039;ll post some functions for anyone who wants to extend this class :
/**
	  *
	  * This function returns the field names of a table
	  *
	  *
	  * @param string $result the mysql resource pointer to a query
	  * @return returns a 2D array with the field names
	  */
    public function get_fields($result)
    {
        $row = $this-&gt;fetchAssoc($result);
        if($row==TRUE)
            return array_keys($row);
        else
            return false;
    }
	/**
	  * prevent sql injections
 	  *
	  */
    public function prevent_injection($value) {
        // Stripslashes
        if (get_magic_quotes_gpc()) {
            $value = stripslashes($value);
        }
        // Quote if not a number or a numeric string
        if (!is_numeric($value)) {
            $value = mysql_real_escape_string($value);
        }
        return $value;
    }</description>
		<content:encoded><![CDATA[<p>Really nice one I&#8217;ll post some functions for anyone who wants to extend this class :</p>
<p>/**<br />
	  *<br />
	  * This function returns the field names of a table<br />
	  *<br />
	  *<br />
	  * @param string $result the mysql resource pointer to a query<br />
	  * @return returns a 2D array with the field names<br />
	  */<br />
    public function get_fields($result)<br />
    {<br />
        $row = $this-&gt;fetchAssoc($result);</p>
<p>        if($row==TRUE)<br />
            return array_keys($row);<br />
        else<br />
            return false;<br />
    }<br />
	/**<br />
	  * prevent sql injections<br />
 	  *<br />
	  */<br />
    public function prevent_injection($value) {<br />
        // Stripslashes<br />
        if (get_magic_quotes_gpc()) {<br />
            $value = stripslashes($value);<br />
        }<br />
        // Quote if not a number or a numeric string<br />
        if (!is_numeric($value)) {<br />
            $value = mysql_real_escape_string($value);<br />
        }<br />
        return $value;<br />
    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Helper Palestinian Developer</title>
		<link>http://mbe.ro/2009/08/30/fast-and-easy-php-mysql-class/comment-page-1/#comment-2694</link>
		<dc:creator>Helper Palestinian Developer</dc:creator>
		<pubDate>Wed, 05 Oct 2011 13:29:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.mbe.ro/?p=114#comment-2694</guid>
		<description>good class, and good tutorial
thank you</description>
		<content:encoded><![CDATA[<p>good class, and good tutorial </p>
<p>thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Helper Palestinian Developer</title>
		<link>http://mbe.ro/2009/08/30/fast-and-easy-php-mysql-class/comment-page-1/#comment-2693</link>
		<dc:creator>Helper Palestinian Developer</dc:creator>
		<pubDate>Wed, 05 Oct 2011 13:25:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.mbe.ro/?p=114#comment-2693</guid>
		<description>foreach ($result as $key)
	foreach ($key as $key) {
		echo $key[&quot;fieldname&quot;];
	}</description>
		<content:encoded><![CDATA[<p>foreach ($result as $key)<br />
	foreach ($key as $key) {<br />
		echo $key[&quot;fieldname&quot;];<br />
	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: qirrank</title>
		<link>http://mbe.ro/2009/08/30/fast-and-easy-php-mysql-class/comment-page-1/#comment-1261</link>
		<dc:creator>qirrank</dc:creator>
		<pubDate>Sat, 02 Apr 2011 17:50:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.mbe.ro/?p=114#comment-1261</guid>
		<description>I love your tutorial !</description>
		<content:encoded><![CDATA[<p>I love your tutorial !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alberto</title>
		<link>http://mbe.ro/2009/08/30/fast-and-easy-php-mysql-class/comment-page-1/#comment-1230</link>
		<dc:creator>Alberto</dc:creator>
		<pubDate>Thu, 24 Mar 2011 17:26:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.mbe.ro/?p=114#comment-1230</guid>
		<description>Hi, does the query function manages insert, update and select?;</description>
		<content:encoded><![CDATA[<p>Hi, does the query function manages insert, update and select?;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ikramy</title>
		<link>http://mbe.ro/2009/08/30/fast-and-easy-php-mysql-class/comment-page-1/#comment-712</link>
		<dc:creator>Ikramy</dc:creator>
		<pubDate>Sat, 18 Dec 2010 17:06:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.mbe.ro/?p=114#comment-712</guid>
		<description>Fantastic. Thank you.
It would be great if you could show us how to loop over the select results :)</description>
		<content:encoded><![CDATA[<p>Fantastic. Thank you.</p>
<p>It would be great if you could show us how to loop over the select results <img src='http://mbe.ro/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

