<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[PunBB Forums - DB lookup question]]></title>
		<link>http://punbb.informer.com/forums/topic/17879/db-lookup-question/</link>
		<description><![CDATA[The most recent posts in DB lookup question.]]></description>
		<lastBuildDate>Mon, 31 Dec 2007 14:55:23 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: DB lookup question]]></title>
			<link>http://punbb.informer.com/forums/post/106097/#p106097</link>
			<description><![CDATA[<p><img src="http://punbb.informer.com/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /> <img src="http://punbb.informer.com/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><p>Thanks again. <img src="http://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /> Just cross referenced that one to the pgsql variant:<br /></p><div class="codebox"><pre><code>pg_result_seek($result, 0);</code></pre></div><p>and it works an absolute treat. <img src="http://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (MattF)]]></author>
			<pubDate>Mon, 31 Dec 2007 14:55:23 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/106097/#p106097</guid>
		</item>
		<item>
			<title><![CDATA[Re: DB lookup question]]></title>
			<link>http://punbb.informer.com/forums/post/106094/#p106094</link>
			<description><![CDATA[<p>Whoops, I gave you the MySQLi one <img src="http://punbb.informer.com/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><p>For regular MySQL it would be:<br /></p><div class="codebox"><pre><code>mysql_data_seek($result, 0);</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (elbekko)]]></author>
			<pubDate>Mon, 31 Dec 2007 14:44:28 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/106094/#p106094</guid>
		</item>
		<item>
			<title><![CDATA[Re: DB lookup question]]></title>
			<link>http://punbb.informer.com/forums/post/106078/#p106078</link>
			<description><![CDATA[<p>Just making sure I&#039;m not missing the gist on that link. <img src="http://punbb.informer.com/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /> So effectively, calling:</p><div class="codebox"><pre><code>$result-&gt;data_seek(0);</code></pre></div><p>would reset the pointer back to zero so that a later fetch_assoc in a while loop would start from the beginning again?</p><br /><p>Thanks again,</p><p>Matt</p>]]></description>
			<author><![CDATA[dummy@example.com (MattF)]]></author>
			<pubDate>Mon, 31 Dec 2007 02:03:12 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/106078/#p106078</guid>
		</item>
		<item>
			<title><![CDATA[Re: DB lookup question]]></title>
			<link>http://punbb.informer.com/forums/post/106063/#p106063</link>
			<description><![CDATA[<p><a href="http://be.php.net/manual/en/function.mysqli-data-seek.php">http://be.php.net/manual/en/function.my &#133; a-seek.php</a></p>]]></description>
			<author><![CDATA[dummy@example.com (elbekko)]]></author>
			<pubDate>Sun, 30 Dec 2007 19:50:19 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/106063/#p106063</guid>
		</item>
		<item>
			<title><![CDATA[Re: DB lookup question]]></title>
			<link>http://punbb.informer.com/forums/post/106059/#p106059</link>
			<description><![CDATA[<p>Cheers. <img src="http://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /> Just one last question. How does one reset the pointer?</p><br /><p>Thanks again,</p><p>Matt</p>]]></description>
			<author><![CDATA[dummy@example.com (MattF)]]></author>
			<pubDate>Sun, 30 Dec 2007 18:46:23 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/106059/#p106059</guid>
		</item>
		<item>
			<title><![CDATA[Re: DB lookup question]]></title>
			<link>http://punbb.informer.com/forums/post/106058/#p106058</link>
			<description><![CDATA[<p>It&#039;ll get the current row and advance the internal resultset pointer by one. You can reset that pointer so you can use the thing again later on.</p>]]></description>
			<author><![CDATA[dummy@example.com (elbekko)]]></author>
			<pubDate>Sun, 30 Dec 2007 18:43:05 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/106058/#p106058</guid>
		</item>
		<item>
			<title><![CDATA[DB lookup question]]></title>
			<link>http://punbb.informer.com/forums/post/106046/#p106046</link>
			<description><![CDATA[<p>If one has a db query/lookup which will return multiple rows, would the following just return the required item from the first row of the result all or rows?</p><div class="codebox"><pre><code>list($lastpost) = $db-&gt;fetch_row($result);</code></pre></div><p>Result is a lookup which is ordered by last post, so the first row has the last post info I require, but I&#039;m not quite sure if the above will work as I think/expect. <img src="http://punbb.informer.com/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /> Plus, running that command would still leave all the info in result as is, to be used in a while loop later on?</p><br /><p>Thanks again,</p><p>Matt</p>]]></description>
			<author><![CDATA[dummy@example.com (MattF)]]></author>
			<pubDate>Sun, 30 Dec 2007 16:47:58 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/post/106046/#p106046</guid>
		</item>
	</channel>
</rss>
