<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/1.5.1.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: PaginateIt - A PHP Pagination Class</title>
	<link>http://www.bradyvercher.com/php-pagination-class.html</link>
	<description></description>
	<pubDate>Thu, 11 Mar 2010 23:58:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.1.2</generator>

	<item>
		<title>by: Ann</title>
		<link>http://www.bradyvercher.com/php-pagination-class.html#comment-76806</link>
		<pubDate>Tue, 02 Mar 2010 18:13:14 +0000</pubDate>
		<guid>http://www.bradyvercher.com/php-pagination-class.html#comment-76806</guid>
					<description>Thanks Brady, 
   This saved me a so much time!
   Can you post the new version that you mentioned to Nick that
   offers a different way to do &quot;Back&quot; and &quot;Next&quot;?</description>
		<content:encoded><![CDATA[	<p>Thanks Brady,<br />
   This saved me a so much time!<br />
   Can you post the new version that you mentioned to Nick that<br />
   offers a different way to do &#8220;Back&#8221; and &#8220;Next&#8221;?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Mike P</title>
		<link>http://www.bradyvercher.com/php-pagination-class.html#comment-73567</link>
		<pubDate>Wed, 28 Oct 2009 18:43:12 +0000</pubDate>
		<guid>http://www.bradyvercher.com/php-pagination-class.html#comment-73567</guid>
					<description>Thanks for all your hard work on this, it is a great solution. It has saved me a lot of time.</description>
		<content:encoded><![CDATA[	<p>Thanks for all your hard work on this, it is a great solution. It has saved me a lot of time.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: AM</title>
		<link>http://www.bradyvercher.com/php-pagination-class.html#comment-73030</link>
		<pubDate>Tue, 06 Oct 2009 15:13:36 +0000</pubDate>
		<guid>http://www.bradyvercher.com/php-pagination-class.html#comment-73030</guid>
					<description>I have a search page using POST variables, which sends the form results to a searchresults.php page for processing

In the searchresults.php page the variables are made into a dynamic WHERE clause (because not all form fields are populated in the web form in the search page and i have a function to remove blank POST variables), represented by $where

i.e. SELECT * FROM houses &quot;. $where)

so im using the format for the query as:

$query = &quot;SELECT * FROM houses &quot;.$where .&quot; &quot;.$PaginateIt-&amp;#62;GetSqlLimit();

Which works fine.....for the first page

How the heck do you get the WHERE clause to be applied to the following pages 2 and on....

Any help would be appreciated

Ive had a long day.....</description>
		<content:encoded><![CDATA[	<p>I have a search page using POST variables, which sends the form results to a searchresults.php page for processing</p>
	<p>In the searchresults.php page the variables are made into a dynamic WHERE clause (because not all form fields are populated in the web form in the search page and i have a function to remove blank POST variables), represented by $where</p>
	<p>i.e. SELECT * FROM houses &#8220;. $where)</p>
	<p>so im using the format for the query as:</p>
	<p>$query = &#8220;SELECT * FROM houses &#8220;.$where .&#8221; &#8220;.$PaginateIt-&gt;GetSqlLimit();</p>
	<p>Which works fine&#8230;..for the first page</p>
	<p>How the heck do you get the WHERE clause to be applied to the following pages 2 and on&#8230;.</p>
	<p>Any help would be appreciated</p>
	<p>Ive had a long day&#8230;..
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: prices woman drivers vehicles ins quotes rates www orionauto com silverado 3500hd</title>
		<link>http://www.bradyvercher.com/php-pagination-class.html#comment-72421</link>
		<pubDate>Wed, 16 Sep 2009 19:50:26 +0000</pubDate>
		<guid>http://www.bradyvercher.com/php-pagination-class.html#comment-72421</guid>
					<description>&lt;strong&gt;prices woman drivers vehicles ins quotes rates www orionauto com silverado 3500hd&lt;/strong&gt;

crows noses slaying congruence </description>
		<content:encoded><![CDATA[	<p><strong>prices woman drivers vehicles ins quotes rates www orionauto com silverado 3500hd</strong></p>
	<p>crows noses slaying congruence
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Daniele Salatti</title>
		<link>http://www.bradyvercher.com/php-pagination-class.html#comment-69740</link>
		<pubDate>Wed, 17 Jun 2009 07:48:52 +0000</pubDate>
		<guid>http://www.bradyvercher.com/php-pagination-class.html#comment-69740</guid>
					<description>Great work! I'm going to use it in a personal project!
It's the first time I use OOP for web projects...</description>
		<content:encoded><![CDATA[	<p>Great work! I&#8217;m going to use it in a personal project!<br />
It&#8217;s the first time I use OOP for web projects&#8230;
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: the kesh</title>
		<link>http://www.bradyvercher.com/php-pagination-class.html#comment-69418</link>
		<pubDate>Fri, 12 Jun 2009 01:42:28 +0000</pubDate>
		<guid>http://www.bradyvercher.com/php-pagination-class.html#comment-69418</guid>
					<description>hey brad awesome class man, been studying OOP recently and i must admit it s such a life saver, had to do tons of coding before.... again thanx for the great work, let me know abt your other products</description>
		<content:encoded><![CDATA[	<p>hey brad awesome class man, been studying OOP recently and i must admit it s such a life saver, had to do tons of coding before&#8230;. again thanx for the great work, let me know abt your other products
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: 7jsngo</title>
		<link>http://www.bradyvercher.com/php-pagination-class.html#comment-69398</link>
		<pubDate>Thu, 11 Jun 2009 18:11:24 +0000</pubDate>
		<guid>http://www.bradyvercher.com/php-pagination-class.html#comment-69398</guid>
					<description>dsfsdfs67877 test test</description>
		<content:encoded><![CDATA[	<p>dsfsdfs67877 test test
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Mack</title>
		<link>http://www.bradyvercher.com/php-pagination-class.html#comment-69244</link>
		<pubDate>Tue, 09 Jun 2009 07:02:22 +0000</pubDate>
		<guid>http://www.bradyvercher.com/php-pagination-class.html#comment-69244</guid>
					<description>I want to assign a class to the current page.  I am unable to find the location in PaginateIt.php.  Can anyone help?</description>
		<content:encoded><![CDATA[	<p>I want to assign a class to the current page.  I am unable to find the location in PaginateIt.php.  Can anyone help?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: TikaC</title>
		<link>http://www.bradyvercher.com/php-pagination-class.html#comment-64166</link>
		<pubDate>Mon, 06 Apr 2009 23:46:41 +0000</pubDate>
		<guid>http://www.bradyvercher.com/php-pagination-class.html#comment-64166</guid>
					<description>Note that the above post the for loop wasn't the error. Seems the commented code got cut out of my post. Here's the code that was in error:

$temp = split(&quot;[\&amp;#166;]&quot;, $call_class-&amp;#62;arr_log[$i]);</description>
		<content:encoded><![CDATA[	<p>Note that the above post the for loop wasn&#8217;t the error. Seems the commented code got cut out of my post. Here&#8217;s the code that was in error:</p>
	<p>$temp = split(&#8221;[\|]&#8221;, $call_class-&gt;arr_log[$i]);
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: TikaC</title>
		<link>http://www.bradyvercher.com/php-pagination-class.html#comment-64165</link>
		<pubDate>Mon, 06 Apr 2009 23:45:34 +0000</pubDate>
		<guid>http://www.bradyvercher.com/php-pagination-class.html#comment-64165</guid>
					<description>Corrected Code: 

I put this before the HTML Table start (instead of after):
// Get Data and Paginate
$result = $call_class-&amp;#62;process_data($domain);

$PaginateIt = new PaginateIt();
$PaginateIt-&amp;#62;SetItemCount(count($call_class-&amp;#62;arr_log));
$PaginateIt-&amp;#62;SetItemsPerPage(200);
$PaginateIt-&amp;#62;SetLinksFormat( '&amp;#62;' );
$PaginateIt-&amp;#62;SetLinksToDisplay(10);
$pageNum = $_GET['page'];
$lines = $PaginateIt-&amp;#62;GetCurrentCollection($call_class-&amp;#62;arr_log);
$PaginateIt-&amp;#62;SetCurrentPage($pageNum);
print &quot;&amp;#60;p style=\&quot;text-align:left\&quot;&amp;#62;&quot; . $PaginateIt-&amp;#62;GetPageLinks($PaginateIt-&amp;#62;GetQueryString()) . &quot;&amp;#60;/p&amp;#62;&quot;;

And then when it comes time to display:

for($i=0; $i arr_log[$i]); // THIS WAS THE ERROR
	$temp = split(&quot;[\&amp;#166;]&quot;, $lines[$i]);
	if ($row_color_flag == 0) {
		$row_color_flag = 1;
	} else {
		$row_color_flag = 0;
	}
        // Display HTML coded info goes here...
}

That fixed it! MANY thanks for this script! It saved me a lot of time as well. :)</description>
		<content:encoded><![CDATA[	<p>Corrected Code: </p>
	<p>I put this before the HTML Table start (instead of after):<br />
// Get Data and Paginate<br />
$result = $call_class-&gt;process_data($domain);</p>
	<p>$PaginateIt = new PaginateIt();<br />
$PaginateIt-&gt;SetItemCount(count($call_class-&gt;arr_log));<br />
$PaginateIt-&gt;SetItemsPerPage(200);<br />
$PaginateIt-&gt;SetLinksFormat( &#8216;&gt;&#8217; );<br />
$PaginateIt-&gt;SetLinksToDisplay(10);<br />
$pageNum = $_GET[&#8217;page&#8217;];<br />
$lines = $PaginateIt-&gt;GetCurrentCollection($call_class-&gt;arr_log);<br />
$PaginateIt-&gt;SetCurrentPage($pageNum);<br />
print &#8220;&lt;p style=\&#8221;text-align:left\&#8221;&gt;&#8221; . $PaginateIt-&gt;GetPageLinks($PaginateIt-&gt;GetQueryString()) . &#8220;&lt;/p&gt;&#8221;;</p>
	<p>And then when it comes time to display:</p>
	<p>for($i=0; $i arr_log[$i]); // THIS WAS THE ERROR<br />
	$temp = split(&#8221;[\|]&#8221;, $lines[$i]);<br />
	if ($row_color_flag == 0) {<br />
		$row_color_flag = 1;<br />
	} else {<br />
		$row_color_flag = 0;<br />
	}<br />
        // Display HTML coded info goes here&#8230;<br />
}</p>
	<p>That fixed it! MANY thanks for this script! It saved me a lot of time as well. <img src='http://www.bradyvercher.com/wp-images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
