<?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"
	>
<channel>
	<title>Comments for Lots of Code</title>
	<atom:link href="http://www.lotsofcode.com/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://www.lotsofcode.com</link>
	<description>php, css and javascript</description>
	<pubDate>Tue, 06 Jan 2009 00:44:35 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>Comment on Simple Smarty Pagination by manfred</title>
		<link>http://www.lotsofcode.com/php/smarty-pagination.htm#comment-2116</link>
		<dc:creator>manfred</dc:creator>
		<pubDate>Mon, 17 Nov 2008 18:39:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.lotsofcode.com/uncategorized/smarty-pagination.htm#comment-2116</guid>
		<description>Please help me , I need to list hundereds of users.
when i use your code i got this error and no output

Warning: array_slice() [function.array-slice]: The first argument should be an array in D:\NEW SOFT DONT DELETE\wamp\www\onlineexam\include\pagination.class.php on line 31</description>
		<content:encoded><![CDATA[<p>Please help me , I need to list hundereds of users.<br />
when i use your code i got this error and no output</p>
<p>Warning: array_slice() [function.array-slice]: The first argument should be an array in D:\NEW SOFT DONT DELETE\wamp\www\onlineexam\include\pagination.class.php on line 31</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jQuery for beginners by yoh</title>
		<link>http://www.lotsofcode.com/javascript-and-ajax/jquery-for-beginners.htm#comment-2077</link>
		<dc:creator>yoh</dc:creator>
		<pubDate>Fri, 14 Nov 2008 07:06:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.lotsofcode.com/javascript-and-ajax/jquery-for-beginners.htm#comment-2077</guid>
		<description>nice! hmmmm</description>
		<content:encoded><![CDATA[<p>nice! hmmmm</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Tag Cloud v2 by marino</title>
		<link>http://www.lotsofcode.com/php/tag-cloud-v2.htm#comment-2067</link>
		<dc:creator>marino</dc:creator>
		<pubDate>Thu, 13 Nov 2008 19:38:07 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/projects/lotsofcode_2008/uncategorized/tag-cloud-v2.htm#comment-2067</guid>
		<description>Hi, this is what i need, great job, thank you. Before I publish om my site i need some help...i can't make tags w/links working when I use $string for language change dynamically, for example:

$cloud = new wordCloud();
$cloud-&#62;addWord(array('word' =&#62; ''$acc'', 'size' =&#62; 1, 'url' =&#62; 'http://www.link.com'));
...
where $acc is defined before in several language and change it when language=$language

how can I define $acc string? with echo don't work ether.
thank you,
M.</description>
		<content:encoded><![CDATA[<p>Hi, this is what i need, great job, thank you. Before I publish om my site i need some help...i can't make tags w/links working when I use $string for language change dynamically, for example:</p>
<p>$cloud = new wordCloud();<br />
$cloud-&gt;addWord(array('word' =&gt; ''$acc'', 'size' =&gt; 1, 'url' =&gt; 'http://www.link.com'));<br />
...<br />
where $acc is defined before in several language and change it when language=$language</p>
<p>how can I define $acc string? with echo don't work ether.<br />
thank you,<br />
M.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP Array Pagination by Dave</title>
		<link>http://www.lotsofcode.com/php/php-array-pagination.htm#comment-2061</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Wed, 12 Nov 2008 23:42:07 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/projects/lotsofcode_2008/uncategorized/php-array-pagination.htm#comment-2061</guid>
		<description>roomlist

</description>
		<content:encoded><![CDATA[<p>roomlist</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP Array Pagination by Dave</title>
		<link>http://www.lotsofcode.com/php/php-array-pagination.htm#comment-2060</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Wed, 12 Nov 2008 23:40:31 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/projects/lotsofcode_2008/uncategorized/php-array-pagination.htm#comment-2060</guid>
		<description>Heya, I will explain this the best way I can, the 1st lot of code below is my pagination for my members list, its done with mysql, now I have a chat site and would like to paginate the roomlist as well, but it can only be done without mysql, I know this can be done but im not sure on how, ive added the roomlist code below the pagination code to show u how the roomlist grabs and echos from the server, someone said yes its easy, just do it thru arrays, but again I dont have much of an idea on how to, so if anyone can help me out it would be much appreciated..

&#60;?php

include('config.php');
include('user_check.php');



// If current page number, use it
// if not, set one!

if(!isset($_GET['page'])){
    $page = 1;
} else {
    $page = $_GET['page'];
}

// Define the number of results per page
$max_results = 10;

// Figure out the limit for the query based
// on the current page number.
$from = (($page * $max_results) - $max_results); 

// Perform MySQL query on only the current page number's results
$userselect = mysql_query("SELECT * FROM users LIMIT $from, $max_results");
$num = mysql_num_rows($userselect);
print("









// Figure out the total number of results in DB:
$total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM users"),0);

// Figure out the total number of pages. Always round up using ceil()
$total_pages = ceil($total_results / $max_results);

// Build Page Number Hyperlinks
echo "Select a Page";

// Build Previous Link
if($page &#62; 1){
    $prev = ($page - 1);
    echo "&lt;a&gt;Previous&lt;/a&gt; ";
}

for($i = 1; $i &#60;= $total_pages; $i++){
    if(($page) == $i){
        echo "$i ";
        } else {
            echo "&lt;a&gt;$i&lt;/a&gt; ";
    }
}

// Build Next Link
if($page &#60; $total_pages){
    $next = ($page + 1);
    echo "&lt;a&gt;Next&lt;/a&gt;";
}
echo "";
?&#62;


roomlist below


</description>
		<content:encoded><![CDATA[<p>Heya, I will explain this the best way I can, the 1st lot of code below is my pagination for my members list, its done with mysql, now I have a chat site and would like to paginate the roomlist as well, but it can only be done without mysql, I know this can be done but im not sure on how, ive added the roomlist code below the pagination code to show u how the roomlist grabs and echos from the server, someone said yes its easy, just do it thru arrays, but again I dont have much of an idea on how to, so if anyone can help me out it would be much appreciated..</p>
<p>&lt;?php</p>
<p>include('config.php');<br />
include('user_check.php');</p>
<p>// If current page number, use it<br />
// if not, set one!</p>
<p>if(!isset($_GET['page'])){<br />
    $page = 1;<br />
} else {<br />
    $page = $_GET['page'];<br />
}</p>
<p>// Define the number of results per page<br />
$max_results = 10;</p>
<p>// Figure out the limit for the query based<br />
// on the current page number.<br />
$from = (($page * $max_results) - $max_results); </p>
<p>// Perform MySQL query on only the current page number's results<br />
$userselect = mysql_query("SELECT * FROM users LIMIT $from, $max_results");<br />
$num = mysql_num_rows($userselect);<br />
print("</p>
<p>// Figure out the total number of results in DB:<br />
$total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM users"),0);</p>
<p>// Figure out the total number of pages. Always round up using ceil()<br />
$total_pages = ceil($total_results / $max_results);</p>
<p>// Build Page Number Hyperlinks<br />
echo "Select a Page";</p>
<p>// Build Previous Link<br />
if($page &gt; 1){<br />
    $prev = ($page - 1);<br />
    echo "<a>Previous</a> ";<br />
}</p>
<p>for($i = 1; $i &lt;= $total_pages; $i++){<br />
    if(($page) == $i){<br />
        echo "$i ";<br />
        } else {<br />
            echo "<a>$i</a> ";<br />
    }<br />
}</p>
<p>// Build Next Link<br />
if($page &lt; $total_pages){<br />
    $next = ($page + 1);<br />
    echo "<a>Next</a>";<br />
}<br />
echo "";<br />
?&gt;</p>
<p>roomlist below</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on It&#8217;s been a while &#8230;. by Web Design Northampton</title>
		<link>http://www.lotsofcode.com/websites/its-been-a-while.htm#comment-2058</link>
		<dc:creator>Web Design Northampton</dc:creator>
		<pubDate>Wed, 12 Nov 2008 21:35:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.lotsofcode.com/?p=66#comment-2058</guid>
		<description>Hey Munir, 

Long time no speak, hows things going?</description>
		<content:encoded><![CDATA[<p>Hey Munir, </p>
<p>Long time no speak, hows things going?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP Array Pagination by Dave</title>
		<link>http://www.lotsofcode.com/php/php-array-pagination.htm#comment-2042</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 11 Nov 2008 04:48:45 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/projects/lotsofcode_2008/uncategorized/php-array-pagination.htm#comment-2042</guid>
		<description>Just wondering if this topic is still alive and if I can get some help with a script I wish to paginate

Regards

Dave</description>
		<content:encoded><![CDATA[<p>Just wondering if this topic is still alive and if I can get some help with a script I wish to paginate</p>
<p>Regards</p>
<p>Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on It&#8217;s been a while &#8230;. by Munir</title>
		<link>http://www.lotsofcode.com/websites/its-been-a-while.htm#comment-2021</link>
		<dc:creator>Munir</dc:creator>
		<pubDate>Thu, 06 Nov 2008 09:30:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.lotsofcode.com/?p=66#comment-2021</guid>
		<description>Look great... oli you sucks.....</description>
		<content:encoded><![CDATA[<p>Look great... oli you sucks.....</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Tag Cloud v2 by Robert</title>
		<link>http://www.lotsofcode.com/php/tag-cloud-v2.htm#comment-2008</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Sun, 02 Nov 2008 16:56:07 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/projects/lotsofcode_2008/uncategorized/tag-cloud-v2.htm#comment-2008</guid>
		<description>how i can set max tags to show in by not mysql version ??</description>
		<content:encoded><![CDATA[<p>how i can set max tags to show in by not mysql version ??</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Tag Cloud by Robert</title>
		<link>http://www.lotsofcode.com/php/tag-cloud.htm#comment-2003</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Sun, 02 Nov 2008 03:48:21 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/projects/lotsofcode_2008/uncategorized/tag-cloud.htm#comment-2003</guid>
		<description>Nice tutorial, thanks a lot</description>
		<content:encoded><![CDATA[<p>Nice tutorial, thanks a lot</p>
]]></content:encoded>
	</item>
</channel>
</rss>
