<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[PunBB Forums - $this->]]></title>
		<link>http://punbb.informer.com/forums/topic/19762/this/</link>
		<description><![CDATA[The most recent posts in $this->.]]></description>
		<lastBuildDate>Thu, 11 Sep 2008 14:41:01 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: $this->]]></title>
			<link>http://punbb.informer.com/forums/post/117607/#p117607</link>
			<description><![CDATA[<p>Use $db-&gt;num_fields(), but not DBLayer-&gt;num_fields().<br />$this points the DBLayer instance inside DBLayer class method.<br />See <a href="http://php.net/manual/en/language.oop.php">http://php.net/manual/en/language.oop.php</a> for details.</p>]]></description>
			<author><![CDATA[dummy@example.com (Anatoly)]]></author>
			<pubDate>Thu, 11 Sep 2008 14:41:01 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/117607/#p117607</guid>
		</item>
		<item>
			<title><![CDATA[$this->]]></title>
			<link>http://punbb.informer.com/forums/post/117606/#p117606</link>
			<description><![CDATA[<p>Hello... I wanto to ask you: what is this?</p><div class="codebox"><pre><code>$this-&gt;</code></pre></div><p>In the file mysql.php<br /></p><div class="codebox"><pre><code>    function query($sql, $unbuffered = false)
    {
        if (defined(&#039;PUN_SHOW_QUERIES&#039;))
            $q_start = get_microtime();

        if ($unbuffered)
            $this-&gt;query_result = @mysql_unbuffered_query($sql, $this-&gt;link_id);
        else
            $this-&gt;query_result = @mysql_query($sql, $this-&gt;link_id);

        if ($this-&gt;query_result)
        {
            if (defined(&#039;PUN_SHOW_QUERIES&#039;))
                $this-&gt;saved_queries[] = array($sql, sprintf(&#039;%.5f&#039;, get_microtime() - $q_start));

            ++$this-&gt;num_queries;

            return $this-&gt;query_result;
        }
        else
        {
            if (defined(&#039;PUN_SHOW_QUERIES&#039;))
                $this-&gt;saved_queries[] = array($sql, 0);

            return false;
        }
    }</code></pre></div><p>I am trying to make a page, but I have this error:</p><div class="codebox"><pre><code>Notice: Undefined variable: this in c:\program files\easyphp1-8\www\prova_tabelle.php on line 64</code></pre></div><p>And in that Line there is this php code:</p><div class="codebox"><pre><code>60 function num_fields($query_id = 0)
61 {
62    global $db_type;
63    if (!$query_id)
64        $query_id = $this-&gt;query_result;
65        switch($db_type)
66        {
67            case &#039;mysql&#039;:
68                return ($query_id) ? @mysql_num_fields($query_id) : false;
69            break;
70            case &#039;mysqli&#039;:
71                return ($query_id) ? @mysqli_num_fields($query_id) : false;
72        }        
73 }</code></pre></div><p>Dante</p>]]></description>
			<author><![CDATA[dummy@example.com (Dante90)]]></author>
			<pubDate>Thu, 11 Sep 2008 13:03:26 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/117606/#p117606</guid>
		</item>
	</channel>
</rss>
