<?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: An Alternative to Pagination : Facebook and Twitter Style</title>
	<atom:link href="http://youhack.me/2010/05/14/an-alternative-to-pagination-facebook-and-twitter-style/feed/" rel="self" type="application/rss+xml" />
	<link>http://youhack.me/2010/05/14/an-alternative-to-pagination-facebook-and-twitter-style/</link>
	<description>Tips,Tricks and Hacks!</description>
	<lastBuildDate>Thu, 10 May 2012 08:13:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Adil</title>
		<link>http://youhack.me/2010/05/14/an-alternative-to-pagination-facebook-and-twitter-style/comment-page-1/#comment-1456</link>
		<dc:creator>Adil</dc:creator>
		<pubDate>Thu, 12 Apr 2012 14:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://youhack.me/?p=512#comment-1456</guid>
		<description>@xtian,
              in your proposed solution, isnt the $counter trackes ranking of only the ten current rows to be shown, or it tracks the ranking of all the rows fetched (with no limit).................
Would you explain your solution a bit more in detail pls............................</description>
		<content:encoded><![CDATA[<p>@xtian,<br />
              in your proposed solution, isnt the $counter trackes ranking of only the ten current rows to be shown, or it tracks the ranking of all the rows fetched (with no limit)&#8230;&#8230;&#8230;&#8230;&#8230;..<br />
Would you explain your solution a bit more in detail pls&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adil</title>
		<link>http://youhack.me/2010/05/14/an-alternative-to-pagination-facebook-and-twitter-style/comment-page-1/#comment-1455</link>
		<dc:creator>Adil</dc:creator>
		<pubDate>Thu, 12 Apr 2012 14:22:46 +0000</pubDate>
		<guid isPermaLink="false">http://youhack.me/?p=512#comment-1455</guid>
		<description>Salam Hyder,
If any table feilds are (id, post_name, post_date); then how to show the results ordered by post_date; 
your code orders the data by id.............................</description>
		<content:encoded><![CDATA[<p>Salam Hyder,<br />
If any table feilds are (id, post_name, post_date); then how to show the results ordered by post_date;<br />
your code orders the data by id&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lucille</title>
		<link>http://youhack.me/2010/05/14/an-alternative-to-pagination-facebook-and-twitter-style/comment-page-1/#comment-1436</link>
		<dc:creator>Lucille</dc:creator>
		<pubDate>Sun, 25 Mar 2012 22:27:15 +0000</pubDate>
		<guid isPermaLink="false">http://youhack.me/?p=512#comment-1436</guid>
		<description>Hi,

I&#039;d like to show the newer posts at the top of the page, and when we click on the link &quot;MORE&quot;, it shows the older posts. For some reason, it&#039;s doing the opposite at the moment. I tried changing the &quot;ASC&quot; to &quot;DESC&quot;, but this simply breaks the code. It shows the first 9 that are new, and when I click the link &quot;MORE&quot;, it shows the same 9 again, and echos &quot;NO MORE POSTS&quot;.

current code:
   $query=&quot;select * from twitter where msg_id&gt;&#039;$msg_id&#039; order by msg_id asc limit 9&quot;;
   $query =&quot;select * from twitter ORDER BY msg_id ASC LIMIT 9&quot;;

new code:
   $query=&quot;select * from twitter where msg_id&gt;&#039;$msg_id&#039; order by msg_id desc limit 9&quot;;
   $query =&quot;select * from twitter ORDER BY msg_id DESC LIMIT 9&quot;;

Does anyone have any idea how to get this working?

I&#039;ve thought maybe we&#039;d need to edit something inside the head of the PHP page, in the JavaScript code:

   var last_msg_id = $(this).attr(&quot;id&quot;);
   //Get the id of this hyperlink 
   //this id indicate the row id in the database 
   if(last_msg_id!=&#039;end&#039;){

As it seems to be echoing the end results.

If anybody has any ideas on how to revert the order, please share.

Thank you!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;d like to show the newer posts at the top of the page, and when we click on the link &#8220;MORE&#8221;, it shows the older posts. For some reason, it&#8217;s doing the opposite at the moment. I tried changing the &#8220;ASC&#8221; to &#8220;DESC&#8221;, but this simply breaks the code. It shows the first 9 that are new, and when I click the link &#8220;MORE&#8221;, it shows the same 9 again, and echos &#8220;NO MORE POSTS&#8221;.</p>
<p>current code:<br />
   $query=&#8221;select * from twitter where msg_id&gt;&#8217;$msg_id&#8217; order by msg_id asc limit 9&#8243;;<br />
   $query =&#8221;select * from twitter ORDER BY msg_id ASC LIMIT 9&#8243;;</p>
<p>new code:<br />
   $query=&#8221;select * from twitter where msg_id&gt;&#8217;$msg_id&#8217; order by msg_id desc limit 9&#8243;;<br />
   $query =&#8221;select * from twitter ORDER BY msg_id DESC LIMIT 9&#8243;;</p>
<p>Does anyone have any idea how to get this working?</p>
<p>I&#8217;ve thought maybe we&#8217;d need to edit something inside the head of the PHP page, in the JavaScript code:</p>
<p>   var last_msg_id = $(this).attr(&#8220;id&#8221;);<br />
   //Get the id of this hyperlink<br />
   //this id indicate the row id in the database<br />
   if(last_msg_id!=&#8217;end&#8217;){</p>
<p>As it seems to be echoing the end results.</p>
<p>If anybody has any ideas on how to revert the order, please share.</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kououphi</title>
		<link>http://youhack.me/2010/05/14/an-alternative-to-pagination-facebook-and-twitter-style/comment-page-1/#comment-1429</link>
		<dc:creator>kououphi</dc:creator>
		<pubDate>Wed, 21 Mar 2012 11:05:42 +0000</pubDate>
		<guid isPermaLink="false">http://youhack.me/?p=512#comment-1429</guid>
		<description>nice! and thanks for it.

but the &quot;twitter_style_pagination_ajax_more.php&quot; does not show me more :(
what i have to change?
only on line 9???
&quot;$query=&quot;select * from XXX where XXX&gt;&#039;$lastmsg&#039; order by XXX asc LIMIT 1&quot;;&quot;

thank you!</description>
		<content:encoded><![CDATA[<p>nice! and thanks for it.</p>
<p>but the &#8220;twitter_style_pagination_ajax_more.php&#8221; does not show me more :(<br />
what i have to change?<br />
only on line 9???<br />
&#8220;$query=&#8221;select * from XXX where XXX&gt;&#8217;$lastmsg&#8217; order by XXX asc LIMIT 1&#8243;;&#8221;</p>
<p>thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zia</title>
		<link>http://youhack.me/2010/05/14/an-alternative-to-pagination-facebook-and-twitter-style/comment-page-1/#comment-1394</link>
		<dc:creator>Zia</dc:creator>
		<pubDate>Wed, 07 Mar 2012 16:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://youhack.me/?p=512#comment-1394</guid>
		<description>can u help about query with &quot;where clause&quot;
like: category = $_REQUEST[&#039;catis&#039;];

plz help i will very much thank for you</description>
		<content:encoded><![CDATA[<p>can u help about query with &#8220;where clause&#8221;<br />
like: category = $_REQUEST['catis'];</p>
<p>plz help i will very much thank for you</p>
]]></content:encoded>
	</item>
</channel>
</rss>

