<?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: Paging Class using PHP and MySQL</title>
	<atom:link href="http://sajjadhossain.com/2008/04/24/paging-class-using-php-and-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://sajjadhossain.com/2008/04/24/paging-class-using-php-and-mysql/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
	<description>Courage to do something...</description>
	<lastBuildDate>Tue, 17 Jan 2012 11:10:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Josh Beauregard</title>
		<link>http://sajjadhossain.com/2008/04/24/paging-class-using-php-and-mysql/comment-page-1/#comment-4710</link>
		<dc:creator>Josh Beauregard</dc:creator>
		<pubDate>Mon, 19 Sep 2011 19:17:28 +0000</pubDate>
		<guid isPermaLink="false">http://sajjadhossain.com/2008/04/24/paging-class-using-php-and-mysql/#comment-4710</guid>
		<description>Thank you it was quick and easy to implment</description>
		<content:encoded><![CDATA[<p>Thank you it was quick and easy to implment</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohammad Sajjad Hossain</title>
		<link>http://sajjadhossain.com/2008/04/24/paging-class-using-php-and-mysql/comment-page-1/#comment-1882</link>
		<dc:creator>Mohammad Sajjad Hossain</dc:creator>
		<pubDate>Sun, 28 Jun 2009 05:30:27 +0000</pubDate>
		<guid isPermaLink="false">http://sajjadhossain.com/2008/04/24/paging-class-using-php-and-mysql/#comment-1882</guid>
		<description>Thank you Tanvir bhai. 

Actually its a base. I assume &quot;complex&quot; means more customizable. You may try to add some new functions to it to make it more customizable. If you do so, please do not forget to share those with us. :)</description>
		<content:encoded><![CDATA[<p>Thank you Tanvir bhai. </p>
<p>Actually its a base. I assume &#8220;complex&#8221; means more customizable. You may try to add some new functions to it to make it more customizable. If you do so, please do not forget to share those with us. <img src='http://sajjadhossain.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tanvir</title>
		<link>http://sajjadhossain.com/2008/04/24/paging-class-using-php-and-mysql/comment-page-1/#comment-1881</link>
		<dc:creator>Tanvir</dc:creator>
		<pubDate>Sun, 28 Jun 2009 04:29:58 +0000</pubDate>
		<guid isPermaLink="false">http://sajjadhossain.com/2008/04/24/paging-class-using-php-and-mysql/#comment-1881</guid>
		<description>Dear brother sajjadhossain it is important and necessary script. It well be very much if you make complex.</description>
		<content:encoded><![CDATA[<p>Dear brother sajjadhossain it is important and necessary script. It well be very much if you make complex.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohammad Sajjad Hossain</title>
		<link>http://sajjadhossain.com/2008/04/24/paging-class-using-php-and-mysql/comment-page-1/#comment-1018</link>
		<dc:creator>Mohammad Sajjad Hossain</dc:creator>
		<pubDate>Tue, 07 Apr 2009 04:28:06 +0000</pubDate>
		<guid isPermaLink="false">http://sajjadhossain.com/2008/04/24/paging-class-using-php-and-mysql/#comment-1018</guid>
		<description>I think if you have used Unicode then that should have worked with that meta tag. Anyway, alls well that ends well ;)</description>
		<content:encoded><![CDATA[<p>I think if you have used Unicode then that should have worked with that meta tag. Anyway, alls well that ends well <img src='http://sajjadhossain.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://sajjadhossain.com/2008/04/24/paging-class-using-php-and-mysql/comment-page-1/#comment-1017</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Tue, 07 Apr 2009 04:24:12 +0000</pubDate>
		<guid isPermaLink="false">http://sajjadhossain.com/2008/04/24/paging-class-using-php-and-mysql/#comment-1017</guid>
		<description>Yes, this line I am add in html document, but it doesn&#039;t work,
but when I change encoding to Baltic it works, but didn&#039;t propertlyshown other letters.
But I found way of this situation, I have enter an ASCII code and it works great :)</description>
		<content:encoded><![CDATA[<p>Yes, this line I am add in html document, but it doesn&#8217;t work,<br />
but when I change encoding to Baltic it works, but didn&#8217;t propertlyshown other letters.<br />
But I found way of this situation, I have enter an ASCII code and it works great <img src='http://sajjadhossain.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohammad Sajjad Hossain</title>
		<link>http://sajjadhossain.com/2008/04/24/paging-class-using-php-and-mysql/comment-page-1/#comment-987</link>
		<dc:creator>Mohammad Sajjad Hossain</dc:creator>
		<pubDate>Mon, 06 Apr 2009 07:51:15 +0000</pubDate>
		<guid isPermaLink="false">http://sajjadhossain.com/2008/04/24/paging-class-using-php-and-mysql/#comment-987</guid>
		<description>Hi Andrew,
You may try this meta tag (in head section)...

&lt;pre lang=&quot;html&quot;&gt;&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hi Andrew,<br />
You may try this meta tag (in head section)&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;</pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://sajjadhossain.com/2008/04/24/paging-class-using-php-and-mysql/comment-page-1/#comment-985</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Mon, 06 Apr 2009 07:44:09 +0000</pubDate>
		<guid isPermaLink="false">http://sajjadhossain.com/2008/04/24/paging-class-using-php-and-mysql/#comment-985</guid>
		<description>Hello,
thank you very much it helps me and of course it works :)
And the last one question are:
 
in Pager.php file you was wrote about which items now are showing:
 
return &#039;Showing &#039;  . $rangeStart . &#039; - &#039; . $rangeEnd . &#039; of &#039; . $this-&gt;totalRecords;
 
But I prefered to translate in my native language, and I want to use utf-8 encoding, but I don&#039;t know where I could this encoding change, because when I try to write char in the internet page I saw a symbol (unknown char),  but not a char. May bee it is not so difficult to change it?
 
Thank you again very much.</description>
		<content:encoded><![CDATA[<p>Hello,<br />
thank you very much it helps me and of course it works <img src='http://sajjadhossain.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
And the last one question are:</p>
<p>in Pager.php file you was wrote about which items now are showing:</p>
<p>return &#8216;Showing &#8216;  . $rangeStart . &#8216; &#8211; &#8216; . $rangeEnd . &#8216; of &#8216; . $this-&gt;totalRecords;</p>
<p>But I prefered to translate in my native language, and I want to use utf-8 encoding, but I don&#8217;t know where I could this encoding change, because when I try to write char in the internet page I saw a symbol (unknown char),  but not a char. May bee it is not so difficult to change it?</p>
<p>Thank you again very much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohammad Sajjad Hossain</title>
		<link>http://sajjadhossain.com/2008/04/24/paging-class-using-php-and-mysql/comment-page-1/#comment-922</link>
		<dc:creator>Mohammad Sajjad Hossain</dc:creator>
		<pubDate>Fri, 03 Apr 2009 08:39:12 +0000</pubDate>
		<guid isPermaLink="false">http://sajjadhossain.com/2008/04/24/paging-class-using-php-and-mysql/#comment-922</guid>
		<description>@Andrew
Actually it depends on how you show/present the rows that you get using the script. Let me give an example based on your requirement.

Suppose you have used my script/class, provided row per page 4 and the result is in &lt;pre lang=&quot;php&quot;&gt;$rows&lt;/pre&gt; variable. Now in your view file (where you are going to show the pictures) do the following:

&lt;pre lang=&quot;php&quot;&gt;
&lt;table width=&quot;100%&quot;&gt;
&lt;?php
    $columNo = 1;

    foreach($rows as $row)
    {
        if($columnNo == 1) //first column
        {
            echo &#039;&lt;tr&gt;&#039;;
        }

        echo &#039;&lt;td&gt;&lt;img src=&quot;&#039; . $row[&#039;image_path&#039;] . &#039;&quot; alt=&quot;&quot; /&gt;&lt;/td&gt;&#039;;
        $columnNo++;

        if($columnNo &gt; 2) //as you want to show 2 pictures in one line
        {
            echo &#039;&lt;/tr&gt;&#039;;
            $columnNo = 1;
        }
    }

    //in case if the page has 3 photos
    if($columnNo == 2)
    {
       echo &#039;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&#039;;
    }
?&gt;
&lt;/table&gt;
&lt;/pre&gt;

I have not tested this code, but it should work as intended. Let me know if it has solved your problem or not.</description>
		<content:encoded><![CDATA[<p>@Andrew<br />
Actually it depends on how you show/present the rows that you get using the script. Let me give an example based on your requirement.</p>
<p>Suppose you have used my script/class, provided row per page 4 and the result is in</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$rows</span></pre></div></div>

<p> variable. Now in your view file (where you are going to show the pictures) do the following:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;table width=&quot;100%&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
    <span style="color: #000088;">$columNo</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$rows</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$columnNo</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">//first column</span>
        <span style="color: #009900;">&#123;</span>
            <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;tr&gt;'</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;td&gt;&lt;img src=&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'image_path'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; alt=&quot;&quot; /&gt;&lt;/td&gt;'</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$columnNo</span><span style="color: #339933;">++;</span>
&nbsp;
        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$columnNo</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">//as you want to show 2 pictures in one line</span>
        <span style="color: #009900;">&#123;</span>
            <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;/tr&gt;'</span><span style="color: #339933;">;</span>
            <span style="color: #000088;">$columnNo</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">//in case if the page has 3 photos</span>
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$columnNo</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
       <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;'</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/table&gt;</pre></div></div>

<p>I have not tested this code, but it should work as intended. Let me know if it has solved your problem or not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://sajjadhossain.com/2008/04/24/paging-class-using-php-and-mysql/comment-page-1/#comment-921</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Fri, 03 Apr 2009 08:20:49 +0000</pubDate>
		<guid isPermaLink="false">http://sajjadhossain.com/2008/04/24/paging-class-using-php-and-mysql/#comment-921</guid>
		<description>Hello,
In the internet I found yours php paging script.
Unfortunatly I am new in php, and I&#039;d like to make a pics gallery 2x2, with paging, but couldn&#039;t make a edit in yours script that could show 2 pics in line and 2 pics in colum.
If not so hard may bee you could help me?</description>
		<content:encoded><![CDATA[<p>Hello,<br />
In the internet I found yours php paging script.<br />
Unfortunatly I am new in php, and I&#8217;d like to make a pics gallery 2&#215;2, with paging, but couldn&#8217;t make a edit in yours script that could show 2 pics in line and 2 pics in colum.<br />
If not so hard may bee you could help me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arafat Rahman</title>
		<link>http://sajjadhossain.com/2008/04/24/paging-class-using-php-and-mysql/comment-page-1/#comment-23</link>
		<dc:creator>Arafat Rahman</dc:creator>
		<pubDate>Sun, 27 Apr 2008 07:50:31 +0000</pubDate>
		<guid isPermaLink="false">http://sajjadhossain.com/2008/04/24/paging-class-using-php-and-mysql/#comment-23</guid>
		<description>Everyday we need pagination.
Hope this paging class may make our life easy.</description>
		<content:encoded><![CDATA[<p>Everyday we need pagination.<br />
Hope this paging class may make our life easy.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

