<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: MySQL: counting results</title>
	<link>http://www.86db1.com/mysql-counting-results</link>
	<description>IBM RPG and Databases</description>
	<pubDate>Tue, 07 Sep 2010 03:21:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Mihai</title>
		<link>http://www.86db1.com/mysql-counting-results#comment-77</link>
		<dc:creator>Mihai</dc:creator>
		<pubDate>Sun, 08 Feb 2009 07:02:16 +0000</pubDate>
		<guid>http://www.86db1.com/mysql-counting-results#comment-77</guid>
		<description>&lt;p&gt;I don’t think anyone is having trouble writing those two lines of code or more.
The idea of this post was discussing how to count the total number of results as fast as possible without putting too much load on the server  on complex queries possibly joining several large tables.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I don’t think anyone is having trouble writing those two lines of code or more.<br />
The idea of this post was discussing how to count the total number of results as fast as possible without putting too much load on the server  on complex queries possibly joining several large tables.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vassy</title>
		<link>http://www.86db1.com/mysql-counting-results#comment-78</link>
		<dc:creator>vassy</dc:creator>
		<pubDate>Sun, 08 Feb 2009 05:02:23 +0000</pubDate>
		<guid>http://www.86db1.com/mysql-counting-results#comment-78</guid>
		<description>&lt;p&gt;var $on_page = 10;&lt;/p&gt;
&lt;p&gt;function listStuff($page)
{
	$start = ($page - 1) * $on_page;
	mysql_query(”SELECT * FROM stuff LIMIT $start,$on_page”);
}&lt;/p&gt;
&lt;p&gt;this is the idea in the list function, you can call it with different page numbers to get where you want, even to the first or last page.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>var $on_page = 10;</p>
<p>function listStuff($page)<br />
{<br />
	$start = ($page - 1) * $on_page;<br />
	mysql_query(”SELECT * FROM stuff LIMIT $start,$on_page”);<br />
}</p>
<p>this is the idea in the list function, you can call it with different page numbers to get where you want, even to the first or last page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mihai</title>
		<link>http://www.86db1.com/mysql-counting-results#comment-76</link>
		<dc:creator>Mihai</dc:creator>
		<pubDate>Sun, 08 Feb 2009 01:02:36 +0000</pubDate>
		<guid>http://www.86db1.com/mysql-counting-results#comment-76</guid>
		<description>&lt;p&gt;and your code is not really correct, no to mention it doesn’t do any escaping on possible user input …&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>and your code is not really correct, no to mention it doesn’t do any escaping on possible user input …</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vassy</title>
		<link>http://www.86db1.com/mysql-counting-results#comment-75</link>
		<dc:creator>vassy</dc:creator>
		<pubDate>Sat, 07 Feb 2009 11:02:27 +0000</pubDate>
		<guid>http://www.86db1.com/mysql-counting-results#comment-75</guid>
		<description>&lt;p&gt;Oh, yeah, kinda useless comment, I misunderstood what you had to say, please delete my stupidity.&lt;/p&gt;
&lt;p&gt;And I know it’s not correct because I said it’s an idea, I didn’t wrote something just from dreams, that’s how I’ve queried for pagination, of course counting separately the total number of results.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Oh, yeah, kinda useless comment, I misunderstood what you had to say, please delete my stupidity.</p>
<p>And I know it’s not correct because I said it’s an idea, I didn’t wrote something just from dreams, that’s how I’ve queried for pagination, of course counting separately the total number of results.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mihai</title>
		<link>http://www.86db1.com/mysql-counting-results#comment-74</link>
		<dc:creator>Mihai</dc:creator>
		<pubDate>Sat, 07 Feb 2009 04:02:01 +0000</pubDate>
		<guid>http://www.86db1.com/mysql-counting-results#comment-74</guid>
		<description>&lt;p&gt;too late &lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>too late </p>
]]></content:encoded>
	</item>
</channel>
</rss>
