<?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: MySQL &amp; PHP  – SQL_CALC_FOUND_ROWS – An easy way to get the total number of rows regardless of LIMIT</title>
	<atom:link href="http://www.justincarmony.com/blog/2008/07/01/mysql-php-sql_calc_found_rows-an-easy-way-to-get-the-total-number-of-rows-regardless-of-limit/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.justincarmony.com/blog/2008/07/01/mysql-php-sql_calc_found_rows-an-easy-way-to-get-the-total-number-of-rows-regardless-of-limit/</link>
	<description>Web Designer &#38; Software Engineer</description>
	<lastBuildDate>Tue, 15 May 2012 02:22:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Roy</title>
		<link>http://www.justincarmony.com/blog/2008/07/01/mysql-php-sql_calc_found_rows-an-easy-way-to-get-the-total-number-of-rows-regardless-of-limit/comment-page-1/#comment-49537</link>
		<dc:creator>Roy</dc:creator>
		<pubDate>Tue, 07 Feb 2012 19:08:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.justincarmony.com/blog/2008/07/01/mysql-php-sql_calc_found_rows-an-easy-way-to-get-the-total-number-of-rows-regardless-of-limit/#comment-49537</guid>
		<description>Its very nice in theory... bit me in the butt today on a high traffic operation... :/

Its fine for small loads, but I&#039;d forget it for heavy stuff...</description>
		<content:encoded><![CDATA[<p>Its very nice in theory&#8230; bit me in the butt today on a high traffic operation&#8230; :/</p>
<p>Its fine for small loads, but I&#8217;d forget it for heavy stuff&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GB3</title>
		<link>http://www.justincarmony.com/blog/2008/07/01/mysql-php-sql_calc_found_rows-an-easy-way-to-get-the-total-number-of-rows-regardless-of-limit/comment-page-1/#comment-48708</link>
		<dc:creator>GB3</dc:creator>
		<pubDate>Thu, 22 Sep 2011 22:06:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.justincarmony.com/blog/2008/07/01/mysql-php-sql_calc_found_rows-an-easy-way-to-get-the-total-number-of-rows-regardless-of-limit/#comment-48708</guid>
		<description>Looks like you&#039;re missing the &quot;C&quot; in CALC on line 2.

$sql = &quot;SELECT SQL_CALC_FOUND_ROWS  * FROM users LIMIT 0, 10&quot;;
instead of 
$sql = &quot;SELECT SQL_CAL_FOUND_ROWS  * FROM users LIMIT 0, 10&quot;;

Thanks for the post.</description>
		<content:encoded><![CDATA[<p>Looks like you&#8217;re missing the &#8220;C&#8221; in CALC on line 2.</p>
<p>$sql = &#8220;SELECT SQL_CALC_FOUND_ROWS  * FROM users LIMIT 0, 10&#8243;;<br />
instead of<br />
$sql = &#8220;SELECT SQL_CAL_FOUND_ROWS  * FROM users LIMIT 0, 10&#8243;;</p>
<p>Thanks for the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nik</title>
		<link>http://www.justincarmony.com/blog/2008/07/01/mysql-php-sql_calc_found_rows-an-easy-way-to-get-the-total-number-of-rows-regardless-of-limit/comment-page-1/#comment-48618</link>
		<dc:creator>nik</dc:creator>
		<pubDate>Thu, 16 Jun 2011 17:40:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.justincarmony.com/blog/2008/07/01/mysql-php-sql_calc_found_rows-an-easy-way-to-get-the-total-number-of-rows-regardless-of-limit/#comment-48618</guid>
		<description>Or just:

$sql = implode(&#039; SQL_CALC_FOUND_ROWS &#039; , explode(&#039; &#039;, trim($sql) , 2));


But take care! Be sure, your query separates SELECT with space, not tab or new line from the rest.</description>
		<content:encoded><![CDATA[<p>Or just:</p>
<p>$sql = implode(&#8216; SQL_CALC_FOUND_ROWS &#8216; , explode(&#8216; &#8216;, trim($sql) , 2));</p>
<p>But take care! Be sure, your query separates SELECT with space, not tab or new line from the rest.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 14/19 queries in 0.007 seconds using memcached
Content Delivery Network via Rackspace Cloud Files: c747925.r25.cf2.rackcdn.com

Served from: www.justincarmony.com @ 2012-05-17 22:16:35 -->
