<?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: PHP Pagination Script</title>
	<atom:link href="http://www.raymondselda.com/php-pagination-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.raymondselda.com/php-pagination-script/</link>
	<description></description>
	<lastBuildDate>Wed, 18 Jan 2012 01:12:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: augus01</title>
		<link>http://www.raymondselda.com/php-pagination-script/#comment-13597</link>
		<dc:creator>augus01</dc:creator>
		<pubDate>Mon, 12 Dec 2011 07:29:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.raymondselda.com/?p=49#comment-13597</guid>
		<description>hi! i folow wat you say to avoid the error on the second page but i still get the same error?pls reply..</description>
		<content:encoded><![CDATA[<p>hi! i folow wat you say to avoid the error on the second page but i still get the same error?pls reply..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Li</title>
		<link>http://www.raymondselda.com/php-pagination-script/#comment-13185</link>
		<dc:creator>Li</dc:creator>
		<pubDate>Sat, 08 Oct 2011 17:26:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.raymondselda.com/?p=49#comment-13185</guid>
		<description>Hi!

I’m using jpaginate — I’m trying to configure the top one in this demo: http://tympanus.net/jPaginate/ at the bottom of my website http://www.bestadventuremovielist.com –

How can I implement this script with that pagination?

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>I’m using jpaginate — I’m trying to configure the top one in this demo: <a href="http://tympanus.net/jPaginate/" rel="nofollow">http://tympanus.net/jPaginate/</a> at the bottom of my website <a href="http://www.bestadventuremovielist.com" rel="nofollow">http://www.bestadventuremovielist.com</a> –</p>
<p>How can I implement this script with that pagination?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohamed Rafiq</title>
		<link>http://www.raymondselda.com/php-pagination-script/#comment-12983</link>
		<dc:creator>Mohamed Rafiq</dc:creator>
		<pubDate>Wed, 21 Sep 2011 07:38:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.raymondselda.com/?p=49#comment-12983</guid>
		<description>Nice work! Actually First time I am using pagination and I done it using ur script.. really gud job.. keep posting simple useful codes...</description>
		<content:encoded><![CDATA[<p>Nice work! Actually First time I am using pagination and I done it using ur script.. really gud job.. keep posting simple useful codes&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shone</title>
		<link>http://www.raymondselda.com/php-pagination-script/#comment-10541</link>
		<dc:creator>Shone</dc:creator>
		<pubDate>Tue, 22 Feb 2011 23:41:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.raymondselda.com/?p=49#comment-10541</guid>
		<description>Hey guys, where can I find updated code, because I can&#039;t get ORDER BY or WHERE clause to work...BTW the code is amazing...thanx</description>
		<content:encoded><![CDATA[<p>Hey guys, where can I find updated code, because I can&#8217;t get ORDER BY or WHERE clause to work&#8230;BTW the code is amazing&#8230;thanx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karukera7</title>
		<link>http://www.raymondselda.com/php-pagination-script/#comment-9376</link>
		<dc:creator>karukera7</dc:creator>
		<pubDate>Tue, 28 Dec 2010 23:43:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.raymondselda.com/?p=49#comment-9376</guid>
		<description>hello guys,

i m having the same issue as you, after i type a keyword and hit go button, i get results displayed fine on the first page, but when clicking the next link from the pagination, i get redirected to the home page. any idea on this please ????

check my code below :





 


&lt;FORM  method=&quot;post&quot; action=&quot;&quot; 
&gt;



&lt;strong&gt;Type a Keyword below please&lt;/strong&gt;







 Artist  Album  Song Title







 connect(&#039;localhost&#039;, &#039;root&#039;, &#039;dA6wep7UUzq5tVfu&#039;, $dbname))
           die( $Bdd -&gt; return_error() );

         $query = &quot;SELECT * FROM $tablename WHERE &quot;.$type.&quot;      LIKE &#039;%&quot;.$keyword.&quot;%&#039;&quot;;

         // Envoi de la requete :
         if( !$Result = $Bdd -&gt; Send_Query($query, $link) ) 
		 die( $Bdd -&gt; return_error());
         }
         if($type == &#039;SongName&#039;)
         {
           if(!$link2 = $Bdd -&gt; connect(&#039;localhost&#039;, &#039;root&#039;, &#039;dA6wep7UUzq5tVfu&#039;, $dbname))
             die( $Bdd -&gt; return_error() );

           $query2 = &quot;SELECT * FROM $tableN WHERE &quot;.$type.&quot; LIKE &#039;%&quot;.$keyword.&quot;%&#039;&quot;;
           // Envoi de la requete :
           if( !$Result2 = $Bdd -&gt; Send_Query($query2, $link2) ) 
              die( $Bdd -&gt; return_error());
         }
//============================================================================</description>
		<content:encoded><![CDATA[<p>hello guys,</p>
<p>i m having the same issue as you, after i type a keyword and hit go button, i get results displayed fine on the first page, but when clicking the next link from the pagination, i get redirected to the home page. any idea on this please ????</p>
<p>check my code below :</p>
<p>&lt;FORM  method=&quot;post&quot; action=&quot;&#8221;<br />
&gt;</p>
<p><strong>Type a Keyword below please</strong></p>
<p> Artist  Album  Song Title</p>
<p> connect(&#8216;localhost&#8217;, &#8216;root&#8217;, &#8216;dA6wep7UUzq5tVfu&#8217;, $dbname))<br />
           die( $Bdd -&gt; return_error() );</p>
<p>         $query = &#8220;SELECT * FROM $tablename WHERE &#8220;.$type.&#8221;      LIKE &#8216;%&#8221;.$keyword.&#8221;%&#8217;&#8221;;</p>
<p>         // Envoi de la requete :<br />
         if( !$Result = $Bdd -&gt; Send_Query($query, $link) )<br />
		 die( $Bdd -&gt; return_error());<br />
         }<br />
         if($type == &#8216;SongName&#8217;)<br />
         {<br />
           if(!$link2 = $Bdd -&gt; connect(&#8216;localhost&#8217;, &#8216;root&#8217;, &#8216;dA6wep7UUzq5tVfu&#8217;, $dbname))<br />
             die( $Bdd -&gt; return_error() );</p>
<p>           $query2 = &#8220;SELECT * FROM $tableN WHERE &#8220;.$type.&#8221; LIKE &#8216;%&#8221;.$keyword.&#8221;%&#8217;&#8221;;<br />
           // Envoi de la requete :<br />
           if( !$Result2 = $Bdd -&gt; Send_Query($query2, $link2) )<br />
              die( $Bdd -&gt; return_error());<br />
         }<br />
//============================================================================</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arun.durai</title>
		<link>http://www.raymondselda.com/php-pagination-script/#comment-6541</link>
		<dc:creator>Arun.durai</dc:creator>
		<pubDate>Mon, 30 Aug 2010 10:39:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.raymondselda.com/?p=49#comment-6541</guid>
		<description>Hi Zadji ,
            Thx ,For your response,
Here am attaching Ps_pagination.php..
conn = $connection;
		$this-&gt;sql = $sql;
		$this-&gt;rows_per_page = (int)$rows_per_page;
		if (intval($links_per_page ) &gt; 0) {
			$this-&gt;links_per_page = (int)$links_per_page;
		} else {
			$this-&gt;links_per_page = 5;
		}
		$this-&gt;append = $append;
		$this-&gt;php_self = htmlspecialchars($_SERVER[&#039;PHP_SELF&#039;] );
		if (isset($_GET[&#039;page&#039;] )) {
			$this-&gt;page = intval($_GET[&#039;page&#039;] );
		}
	}
	
	/**
	 * Executes the SQL query and initializes internal variables
	 *
	 * @access public
	 * @return resource
	 */
	function paginate() {
		//Check for valid mysql connection
		if (! $this-&gt;conn &#124;&#124; ! is_resource($this-&gt;conn )) {
			if ($this-&gt;debug)
				echo &quot;MySQL connection missing&quot;;
			return false;
		}
		
		//Find total number of rows
		$all_rs = @mysql_query($this-&gt;sql );
		if (! $all_rs) {
			if ($this-&gt;debug)
				echo &quot;SQL query failed. Check your query.Error Returned: &quot; . mysql_error();
			return false;
		}
		$this-&gt;total_rows = mysql_num_rows($all_rs );
		@mysql_close($all_rs );
		
		//Return FALSE if no rows found
		if ($this-&gt;total_rows == 0) {
			if ($this-&gt;debug)
				echo &quot;Query returned zero rows.&quot;;
			return FALSE;
		}
		
		//Max number of pages
		$this-&gt;max_pages = ceil($this-&gt;total_rows / $this-&gt;rows_per_page );
		if ($this-&gt;links_per_page &gt; $this-&gt;max_pages) {
			$this-&gt;links_per_page = $this-&gt;max_pages;
		}
		
		//Check the page value just in case someone is trying to input an aribitrary value
		if ($this-&gt;page &gt; $this-&gt;max_pages &#124;&#124; $this-&gt;page page = 1;
		}
		
		//Calculate Offset
		$this-&gt;offset = $this-&gt;rows_per_page * ($this-&gt;page - 1);
		
		//Fetch the required result set
		$rs = @mysql_query($this-&gt;sql . &quot; LIMIT {$this-&gt;offset}, {$this-&gt;rows_per_page}&quot; );
		if (! $rs) {
			if ($this-&gt;debug)
				echo &quot;Pagination query failed. Check your query.Error Returned: &quot; . mysql_error();
			return false;
		}
		return $rs;
	}
	
	/**
	 * Display the link to the first page
	 *
	 * @access public
	 * @param string $tag Text string to be displayed as the link. Defaults to &#039;First&#039;
	 * @return string
	 */
	function renderFirst($tag = &#039;First&#039;) {
		if ($this-&gt;total_rows == 0)
			return FALSE;
		
		if ($this-&gt;page == 1) {
			return &quot;$tag &quot;;
		} else {
			return &#039;&lt;a&gt;php_self . &#039;?page=1&amp;&#039; . $this-&gt;append . &#039;&quot;&gt;&#039; . $tag . &#039;&lt;/a&gt; &#039;;
		}
	}
	
	/**
	 * Display the link to the last page
	 *
	 * @access public
	 * @param string $tag Text string to be displayed as the link. Defaults to &#039;Last&#039;
	 * @return string
	 */
	function renderLast($tag = &#039;Last&#039;) {
		if ($this-&gt;total_rows == 0)
			return FALSE;
		
		if ($this-&gt;page == $this-&gt;max_pages) {
			return $tag;
		} else {
			return &#039; &lt;a&gt;php_self . &#039;?page=&#039; . $this-&gt;max_pages . &#039;&amp;&#039; . $this-&gt;append . &#039;&quot;&gt;&#039; . $tag . &#039;&lt;/a&gt;&#039;;
		}
	}
	
	/**
	 * Display the next link
	 *
	 * @access public
	 * @param string $tag Text string to be displayed as the link. Defaults to &#039;&gt;&gt;&#039;
	 * @return string
	 */
	function renderNext($tag = &#039;&gt;&gt;&#039;) {
		if ($this-&gt;total_rows == 0)
			return FALSE;
		
		if ($this-&gt;page max_pages) {
			return &#039;&lt;a&gt;php_self . &#039;?page=&#039; . ($this-&gt;page + 1) . &#039;&amp;&#039; . $this-&gt;append . &#039;&quot;&gt;&#039; . $tag . &#039;&lt;/a&gt;&#039;;
		} else {
			return $tag;
		}
	}
	
	/**
	 * Display the previous link
	 *
	 * @access public
	 * @param string $tag Text string to be displayed as the link. Defaults to &#039;&lt;total_rows == 0)
			return FALSE;
		
		if ($this-&gt;page &gt; 1) {
			return &#039; &lt;a&gt;php_self . &#039;?page=&#039; . ($this-&gt;page - 1) . &#039;&amp;&#039; . $this-&gt;append . &#039;&quot;&gt;&#039; . $tag . &#039;&lt;/a&gt;&#039;;
		} else {
			return &quot; $tag&quot;;
		}
	}
	
	/**
	 * Display the page links
	 *
	 * @access public
	 * @return string
	 */
	function renderNav($prefix = &#039;&#039;, $suffix = &#039;&#039;) {
		if ($this-&gt;total_rows == 0)
			return FALSE;
		
		$batch = ceil($this-&gt;page / $this-&gt;links_per_page );
		$end = $batch * $this-&gt;links_per_page;
		if ($end == $this-&gt;page) {
			//$end = $end + $this-&gt;links_per_page - 1;
		//$end = $end + ceil($this-&gt;links_per_page/2);
		}
		if ($end &gt; $this-&gt;max_pages) {
			$end = $this-&gt;max_pages;
		}
		$start = $end - $this-&gt;links_per_page + 1;
		$links = &#039;&#039;;
		
		for($i = $start; $i page) {
				$links .= $prefix . &quot; $i &quot; . $suffix;
			} else {
				$links .= &#039; &#039; . $prefix . &#039;&lt;a&gt;php_self . &#039;?page=&#039; . $i . &#039;&amp;&#039; . $this-&gt;append . &#039;&quot;&gt;&#039; . $i . &#039;&lt;/a&gt;&#039; . $suffix . &#039; &#039;;
			}
		}
		
		return $links;
	}
	
	/**
	 * Display full pagination navigation
	 *
	 * @access public
	 * @return string
	 */
	function renderFullNav() {
		return $this-&gt;renderFirst() . &#039;&#160;&#039; . $this-&gt;renderPrev() . &#039;&#160;&#039; . $this-&gt;renderNav() . &#039;&#160;&#039; . $this-&gt;renderNext() . &#039;&#160;&#039; . $this-&gt;renderLast();
	}
	
	/**
	 * Set debug mode
	 *
	 * @access public
	 * @param bool $debug Set to TRUE to enable debug messages
	 * @return void
	 */
	function setDebug($debug) {
		$this-&gt;debug = $debug;
	}
}
?&gt;
//mine file
setDebug(true);
	/*
	 * The paginate() function returns a mysql result set
	 * or false if no rows are returned by the query
	*/
	$rs = $pager-&gt;paginate();
	?&gt;
	renderFullNav();
	/*
	 * Or you can display the individual links for more
	 * control over HTML rendering.
	 * 
	*/
	
	?&gt;
Now i have mentioned  like
$pager = new PS_Pagination($conn, $sql,3, 5, &quot;param1=valu1&amp;param1=value1&amp;conditionone=&#039;$q&#039;&amp;conditiontwo=&#039;$aa&#039;&amp;conditionthree=&#039;$bb&#039;&quot;);
Now i  could get values untill our pagination&#039;s last page..</description>
		<content:encoded><![CDATA[<p>Hi Zadji ,<br />
            Thx ,For your response,<br />
Here am attaching Ps_pagination.php..<br />
conn = $connection;<br />
		$this-&gt;sql = $sql;<br />
		$this-&gt;rows_per_page = (int)$rows_per_page;<br />
		if (intval($links_per_page ) &gt; 0) {<br />
			$this-&gt;links_per_page = (int)$links_per_page;<br />
		} else {<br />
			$this-&gt;links_per_page = 5;<br />
		}<br />
		$this-&gt;append = $append;<br />
		$this-&gt;php_self = htmlspecialchars($_SERVER['PHP_SELF'] );<br />
		if (isset($_GET['page'] )) {<br />
			$this-&gt;page = intval($_GET['page'] );<br />
		}<br />
	}</p>
<p>	/**<br />
	 * Executes the SQL query and initializes internal variables<br />
	 *<br />
	 * @access public<br />
	 * @return resource<br />
	 */<br />
	function paginate() {<br />
		//Check for valid mysql connection<br />
		if (! $this-&gt;conn || ! is_resource($this-&gt;conn )) {<br />
			if ($this-&gt;debug)<br />
				echo &#8220;MySQL connection missing&#8221;;<br />
			return false;<br />
		}</p>
<p>		//Find total number of rows<br />
		$all_rs = @mysql_query($this-&gt;sql );<br />
		if (! $all_rs) {<br />
			if ($this-&gt;debug)<br />
				echo &#8220;SQL query failed. Check your query.Error Returned: &#8221; . mysql_error();<br />
			return false;<br />
		}<br />
		$this-&gt;total_rows = mysql_num_rows($all_rs );<br />
		@mysql_close($all_rs );</p>
<p>		//Return FALSE if no rows found<br />
		if ($this-&gt;total_rows == 0) {<br />
			if ($this-&gt;debug)<br />
				echo &#8220;Query returned zero rows.&#8221;;<br />
			return FALSE;<br />
		}</p>
<p>		//Max number of pages<br />
		$this-&gt;max_pages = ceil($this-&gt;total_rows / $this-&gt;rows_per_page );<br />
		if ($this-&gt;links_per_page &gt; $this-&gt;max_pages) {<br />
			$this-&gt;links_per_page = $this-&gt;max_pages;<br />
		}</p>
<p>		//Check the page value just in case someone is trying to input an aribitrary value<br />
		if ($this-&gt;page &gt; $this-&gt;max_pages || $this-&gt;page page = 1;<br />
		}</p>
<p>		//Calculate Offset<br />
		$this-&gt;offset = $this-&gt;rows_per_page * ($this-&gt;page &#8211; 1);</p>
<p>		//Fetch the required result set<br />
		$rs = @mysql_query($this-&gt;sql . &#8221; LIMIT {$this-&gt;offset}, {$this-&gt;rows_per_page}&#8221; );<br />
		if (! $rs) {<br />
			if ($this-&gt;debug)<br />
				echo &#8220;Pagination query failed. Check your query.Error Returned: &#8221; . mysql_error();<br />
			return false;<br />
		}<br />
		return $rs;<br />
	}</p>
<p>	/**<br />
	 * Display the link to the first page<br />
	 *<br />
	 * @access public<br />
	 * @param string $tag Text string to be displayed as the link. Defaults to &#8216;First&#8217;<br />
	 * @return string<br />
	 */<br />
	function renderFirst($tag = &#8216;First&#8217;) {<br />
		if ($this-&gt;total_rows == 0)<br />
			return FALSE;</p>
<p>		if ($this-&gt;page == 1) {<br />
			return &#8220;$tag &#8220;;<br />
		} else {<br />
			return &#8216;<a>php_self . &#8216;?page=1&amp;&#8217; . $this-&gt;append . &#8216;&#8221;&gt;&#8217; . $tag . &#8216;</a> &#8216;;<br />
		}<br />
	}</p>
<p>	/**<br />
	 * Display the link to the last page<br />
	 *<br />
	 * @access public<br />
	 * @param string $tag Text string to be displayed as the link. Defaults to &#8216;Last&#8217;<br />
	 * @return string<br />
	 */<br />
	function renderLast($tag = &#8216;Last&#8217;) {<br />
		if ($this-&gt;total_rows == 0)<br />
			return FALSE;</p>
<p>		if ($this-&gt;page == $this-&gt;max_pages) {<br />
			return $tag;<br />
		} else {<br />
			return &#8216; <a>php_self . &#8216;?page=&#8217; . $this-&gt;max_pages . &#8216;&amp;&#8217; . $this-&gt;append . &#8216;&#8221;&gt;&#8217; . $tag . &#8216;</a>&#8216;;<br />
		}<br />
	}</p>
<p>	/**<br />
	 * Display the next link<br />
	 *<br />
	 * @access public<br />
	 * @param string $tag Text string to be displayed as the link. Defaults to &#8216;&gt;&gt;&#8217;<br />
	 * @return string<br />
	 */<br />
	function renderNext($tag = &#8216;&gt;&gt;&#8217;) {<br />
		if ($this-&gt;total_rows == 0)<br />
			return FALSE;</p>
<p>		if ($this-&gt;page max_pages) {<br />
			return &#8216;<a>php_self . &#8216;?page=&#8217; . ($this-&gt;page + 1) . &#8216;&amp;&#8217; . $this-&gt;append . &#8216;&#8221;&gt;&#8217; . $tag . &#8216;</a>&#8216;;<br />
		} else {<br />
			return $tag;<br />
		}<br />
	}</p>
<p>	/**<br />
	 * Display the previous link<br />
	 *<br />
	 * @access public<br />
	 * @param string $tag Text string to be displayed as the link. Defaults to &#8216;&lt;total_rows == 0)<br />
			return FALSE;</p>
<p>		if ($this-&gt;page &gt; 1) {<br />
			return &#8216; <a>php_self . &#8216;?page=&#8217; . ($this-&gt;page &#8211; 1) . &#8216;&amp;&#8217; . $this-&gt;append . &#8216;&#8221;&gt;&#8217; . $tag . &#8216;</a>&#8216;;<br />
		} else {<br />
			return &#8221; $tag&#8221;;<br />
		}<br />
	}</p>
<p>	/**<br />
	 * Display the page links<br />
	 *<br />
	 * @access public<br />
	 * @return string<br />
	 */<br />
	function renderNav($prefix = &#8221;, $suffix = &#8221;) {<br />
		if ($this-&gt;total_rows == 0)<br />
			return FALSE;</p>
<p>		$batch = ceil($this-&gt;page / $this-&gt;links_per_page );<br />
		$end = $batch * $this-&gt;links_per_page;<br />
		if ($end == $this-&gt;page) {<br />
			//$end = $end + $this-&gt;links_per_page &#8211; 1;<br />
		//$end = $end + ceil($this-&gt;links_per_page/2);<br />
		}<br />
		if ($end &gt; $this-&gt;max_pages) {<br />
			$end = $this-&gt;max_pages;<br />
		}<br />
		$start = $end &#8211; $this-&gt;links_per_page + 1;<br />
		$links = &#8221;;</p>
<p>		for($i = $start; $i page) {<br />
				$links .= $prefix . &#8221; $i &#8221; . $suffix;<br />
			} else {<br />
				$links .= &#8216; &#8216; . $prefix . &#8216;<a>php_self . &#8216;?page=&#8217; . $i . &#8216;&amp;&#8217; . $this-&gt;append . &#8216;&#8221;&gt;&#8217; . $i . &#8216;</a>&#8216; . $suffix . &#8216; &#8216;;<br />
			}<br />
		}</p>
<p>		return $links;<br />
	}</p>
<p>	/**<br />
	 * Display full pagination navigation<br />
	 *<br />
	 * @access public<br />
	 * @return string<br />
	 */<br />
	function renderFullNav() {<br />
		return $this-&gt;renderFirst() . &#8216;&nbsp;&#8217; . $this-&gt;renderPrev() . &#8216;&nbsp;&#8217; . $this-&gt;renderNav() . &#8216;&nbsp;&#8217; . $this-&gt;renderNext() . &#8216;&nbsp;&#8217; . $this-&gt;renderLast();<br />
	}</p>
<p>	/**<br />
	 * Set debug mode<br />
	 *<br />
	 * @access public<br />
	 * @param bool $debug Set to TRUE to enable debug messages<br />
	 * @return void<br />
	 */<br />
	function setDebug($debug) {<br />
		$this-&gt;debug = $debug;<br />
	}<br />
}<br />
?&gt;<br />
//mine file<br />
setDebug(true);<br />
	/*<br />
	 * The paginate() function returns a mysql result set<br />
	 * or false if no rows are returned by the query<br />
	*/<br />
	$rs = $pager-&gt;paginate();<br />
	?&gt;<br />
	renderFullNav();<br />
	/*<br />
	 * Or you can display the individual links for more<br />
	 * control over HTML rendering.<br />
	 *<br />
	*/</p>
<p>	?&gt;<br />
Now i have mentioned  like<br />
$pager = new PS_Pagination($conn, $sql,3, 5, &#8220;param1=valu1&amp;param1=value1&amp;conditionone=&#8217;$q&#8217;&amp;conditiontwo=&#8217;$aa&#8217;&amp;conditionthree=&#8217;$bb&#8217;&#8221;);<br />
Now i  could get values untill our pagination&#8217;s last page..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blaze</title>
		<link>http://www.raymondselda.com/php-pagination-script/#comment-6539</link>
		<dc:creator>Blaze</dc:creator>
		<pubDate>Mon, 30 Aug 2010 10:17:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.raymondselda.com/?p=49#comment-6539</guid>
		<description>where is the ps_pagination.php</description>
		<content:encoded><![CDATA[<p>where is the ps_pagination.php</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zadji</title>
		<link>http://www.raymondselda.com/php-pagination-script/#comment-6531</link>
		<dc:creator>Zadji</dc:creator>
		<pubDate>Sun, 29 Aug 2010 02:25:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.raymondselda.com/?p=49#comment-6531</guid>
		<description>where can i find 

 include(&#039;ps_pagination.php&#039;);  


??</description>
		<content:encoded><![CDATA[<p>where can i find </p>
<p> include(&#8216;ps_pagination.php&#8217;);  </p>
<p>??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arun.durai</title>
		<link>http://www.raymondselda.com/php-pagination-script/#comment-6417</link>
		<dc:creator>Arun.durai</dc:creator>
		<pubDate>Fri, 20 Aug 2010 09:46:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.raymondselda.com/?p=49#comment-6417</guid>
		<description>You did Nice job ..Thanks…
..With previous code (ps_pagination.php)
i couldn’t Fetch second page’s results with ($_post Or $_get) where condition
It goes with empty where condition
If its possible assit me
$insid = $_SESSION[&#039;institution_id&#039;];
$classname =$_GET[&quot;classname &quot;];
$sql = “SELECT * FROM eventslist WHERE institution_id = ‘”.$insid.”‘ AND student_class =’”.$classname.”‘ ORDER BY id desc”;
with this code first page’s result only displaying .. from second page it shows empty result..
But session value insid works in all pages
Thx in advance

Regards,
Arun.k</description>
		<content:encoded><![CDATA[<p>You did Nice job ..Thanks…<br />
..With previous code (ps_pagination.php)<br />
i couldn’t Fetch second page’s results with ($_post Or $_get) where condition<br />
It goes with empty where condition<br />
If its possible assit me<br />
$insid = $_SESSION['institution_id'];<br />
$classname =$_GET["classname "];<br />
$sql = “SELECT * FROM eventslist WHERE institution_id = ‘”.$insid.”‘ AND student_class =’”.$classname.”‘ ORDER BY id desc”;<br />
with this code first page’s result only displaying .. from second page it shows empty result..<br />
But session value insid works in all pages<br />
Thx in advance</p>
<p>Regards,<br />
Arun.k</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jay</title>
		<link>http://www.raymondselda.com/php-pagination-script/#comment-6141</link>
		<dc:creator>jay</dc:creator>
		<pubDate>Fri, 30 Jul 2010 11:59:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.raymondselda.com/?p=49#comment-6141</guid>
		<description>this ps_pagination.php cannot work with search results. First page is display but there&#039;s problem on the second page.</description>
		<content:encoded><![CDATA[<p>this ps_pagination.php cannot work with search results. First page is display but there&#8217;s problem on the second page.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

