<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>SQL_CALC_FOUND_ROWS on Justin Carmony</title>
		<link>https://www.justincarmony.com/tags/sql_calc_found_rows/</link>
		<description>Recent content in SQL_CALC_FOUND_ROWS on Justin Carmony</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Tue, 01 Jul 2008 20:30:48 +0000</lastBuildDate>
		
			<atom:link href="https://www.justincarmony.com/tags/sql_calc_found_rows/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>MySQL &amp; PHP  – SQL_CALC_FOUND_ROWS – An easy way to get the total number of rows regardless of LIMIT</title>
				<link>https://www.justincarmony.com/2008/07/01/mysql-php-sql_calc_found_rows-an-easy-way-to-get-the-total-number-of-rows-regardless-of-limit/</link>
				<pubDate>Tue, 01 Jul 2008 20:30:48 +0000</pubDate>
				<guid>https://www.justincarmony.com/2008/07/01/mysql-php-sql_calc_found_rows-an-easy-way-to-get-the-total-number-of-rows-regardless-of-limit/</guid>
				<description>&lt;p&gt;Here is a little trick I found awhile back. I faced a challenge several months ago where I had to query a large, complex data result from MySQL. I &amp;ldquo;paged&amp;rdquo; through the results using LIMIT and OFFSET. However, I wanted to know the total number of rows w/o the LIMIT. The previous coder accomplished this by a query before appending the LIMIT statement at the end. This turned out to be very inefficient due to MySQL put together the 10000+ rows and sent it to PHP ready to be parsed, only to have the function mysql_num_rows() to be executed on it.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
