<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>HTML Help</title>
  <link>http://htmlcodetutorial.com/help/index.php</link>
  <description>Please &lt;a href=&quot;http://www.htmlcodetutorial.com/help/search.php&quot;&gt;Search&lt;/a&gt; for the answer to your question before asking it! Thanks.</description>
  <language>english</language>
  <copyright>(c) Copyright 2009 by HTML Help</copyright>
  <managingEditor>design@htmlcodetutorial.com</managingEditor>
  <webMaster>design@htmlcodetutorial.com</webMaster>
  <pubDate>Sat Nov 21, 2009 5:36 am</pubDate>
  <lastBuildDate>Sat Nov 21, 2009 5:36 am</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>HTML Help</title>
    <url></url>
    <link>http://htmlcodetutorial.com/help/</link>
    <description>Please &lt;a href=&quot;http://www.htmlcodetutorial.com/help/search.php&quot;&gt;Search&lt;/a&gt; for the answer to your question before asking it! Thanks.</description>
  </image>

                                      <item>
                                        <title>Every other week date</title>
                                        <link>http://htmlcodetutorial.com/help/viewtopic.php?p=56304#56304</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://htmlcodetutorial.com/help/profile.php?mode=viewprofile&amp;u=21455'&gt;curtranhome&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Nov 17, 2009 9:22 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      is there any way to display the date 2 weeks in advance? like today is the 17th, can we display the date on the 1st of december? and the the 15th, then the 29th, etc. without having to manually update it?</description>
                                        <comments>http://htmlcodetutorial.com/help/viewtopic.php?p=56304#56304</comments>
                                        <author>curtranhome</author>
                                        <pubDate>Tue Nov 17, 2009 9:22 pm</pubDate>
                                        <guid isPermaLink="true">http://htmlcodetutorial.com/help/viewtopic.php?p=56304#56304</guid>
                                      </item>
                                      <item>
                                        <title>Problem in html</title>
                                        <link>http://htmlcodetutorial.com/help/viewtopic.php?p=56191#56191</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://htmlcodetutorial.com/help/profile.php?mode=viewprofile&amp;u=28638'&gt;debasishgang7&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sun Nov 15, 2009 8:07 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      i want to add a link my website...&lt;br /&gt;
the link will be like this...&lt;br /&gt;
there is a web site which provide location information about any mobile number..&lt;br /&gt;
&lt;br /&gt;
i want to make a page where the visitor have to enter the mobile number and the information then the info be  will taken from the main server(main website) and the visitor will able to see those info in my webpage without redirecting  to main website page....&lt;br /&gt;
&lt;br /&gt;
(my page)--mobile no--&amp;gt;(main server)---              the info regarding the mobile no --&amp;gt;(my web page)..</description>
                                        <comments>http://htmlcodetutorial.com/help/viewtopic.php?p=56191#56191</comments>
                                        <author>debasishgang7</author>
                                        <pubDate>Sun Nov 15, 2009 8:07 am</pubDate>
                                        <guid isPermaLink="true">http://htmlcodetutorial.com/help/viewtopic.php?p=56191#56191</guid>
                                      </item>
                                      <item>
                                        <title>ip banning system,</title>
                                        <link>http://htmlcodetutorial.com/help/viewtopic.php?p=55927#55927</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://htmlcodetutorial.com/help/profile.php?mode=viewprofile&amp;u=27099'&gt;leahmarie&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sun Nov 08, 2009 9:33 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Cool scripts. be sure on the look out on your progress. will sure do our part also and study the codes you are referring to.</description>
                                        <comments>http://htmlcodetutorial.com/help/viewtopic.php?p=55927#55927</comments>
                                        <author>leahmarie</author>
                                        <pubDate>Sun Nov 08, 2009 9:33 pm</pubDate>
                                        <guid isPermaLink="true">http://htmlcodetutorial.com/help/viewtopic.php?p=55927#55927</guid>
                                      </item>
                                      <item>
                                        <title>Need a Website Built</title>
                                        <link>http://htmlcodetutorial.com/help/viewtopic.php?p=55905#55905</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://htmlcodetutorial.com/help/profile.php?mode=viewprofile&amp;u=28533'&gt;logixtechgroup&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sat Nov 07, 2009 7:55 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      What price range do you have in mind?&lt;br /&gt;
&lt;br /&gt;
We build affordable websites for small- to mid-size businesses.&lt;br /&gt;
&lt;br /&gt;
For a look at our handiwork, here is a sample of a website for the most popular Italian restaurant in northeast Wisconsin.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.victoriasitalian.com/&quot; target=&quot;_blank&quot;&gt;http://www.victoriasitalian.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Let us know at info[at]logixtechgroup[dot]com if you are interested.</description>
                                        <comments>http://htmlcodetutorial.com/help/viewtopic.php?p=55905#55905</comments>
                                        <author>logixtechgroup</author>
                                        <pubDate>Sat Nov 07, 2009 7:55 pm</pubDate>
                                        <guid isPermaLink="true">http://htmlcodetutorial.com/help/viewtopic.php?p=55905#55905</guid>
                                      </item>
                                      <item>
                                        <title>question about smarty</title>
                                        <link>http://htmlcodetutorial.com/help/viewtopic.php?p=55821#55821</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://htmlcodetutorial.com/help/profile.php?mode=viewprofile&amp;u=27986'&gt;sudhakararaog&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Thu Nov 05, 2009 3:20 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      i am using smarty template engine at work place, following is the situation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i already have 1 template that has already been created example = &lt;a href=&quot;http://localhost/sites/template1.com&quot; target=&quot;_blank&quot;&gt;http://localhost/sites/template1.com&lt;/a&gt; this works fine&lt;br /&gt;
&lt;br /&gt;
following is the folder structure i have for smarty on xampp&lt;br /&gt;
&lt;br /&gt;
1. C:\xampp\htdocs\sites\template1.com where i have .htaccess index.php and siteconf.php&lt;br /&gt;
&lt;br /&gt;
2. C:\xampp\htdocs\sites\_templates\templates\template1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
in the siteconf.php file there are all the major variables defined which are accessed in other tpl file of the templates example in aboutus page, contactus page etc of this template1&lt;br /&gt;
&lt;br /&gt;
now i have created another template called template2 and this also has the same structure &lt;br /&gt;
&lt;br /&gt;
1. C:\xampp\htdocs\sites\template2.com where i have .htaccess index.php and siteconf.php&lt;br /&gt;
&lt;br /&gt;
2. C:\xampp\htdocs\sites\_templates\templates\template2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
my question is the look and feel when i access&lt;br /&gt;
&lt;a href=&quot;http://localhost/sites/template1.com&quot; target=&quot;_blank&quot;&gt;http://localhost/sites/template1.com&lt;/a&gt; and&lt;br /&gt;
&lt;a href=&quot;http://localhost/sites/template2.com&quot; target=&quot;_blank&quot;&gt;http://localhost/sites/template2.com&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
is the same the only thing that needs to be done is for template2 when i access &lt;a href=&quot;http://localhost/sites/template2.com&quot; target=&quot;_blank&quot;&gt;http://localhost/sites/template2.com&lt;/a&gt; ONLY the header image should be different compared to the header i have for &lt;a href=&quot;http://localhost/sites/template1.com&quot; target=&quot;_blank&quot;&gt;http://localhost/sites/template1.com&lt;/a&gt; this is the only change i need&lt;br /&gt;
&lt;br /&gt;
i am not aware as to the php code i need to write so that when i access &lt;a href=&quot;http://localhost/sites/template2.com&quot; target=&quot;_blank&quot;&gt;http://localhost/sites/template2.com&lt;/a&gt; the header image changes and this new header image remains for the entire pages of &lt;a href=&quot;http://localhost/sites/template2.com&quot; target=&quot;_blank&quot;&gt;http://localhost/sites/template2.com&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
presently in header.tpl of template1 is written as follows&lt;br /&gt;
&lt;br /&gt;
{if strpos($Data.KEYWORD,&amp;quot;rv rental&amp;quot;) === false}&lt;br /&gt;
&amp;lt;div class=&amp;quot;header&amp;quot; style=&amp;quot;background:url(images/header_{$siteData.COUNTRY3}.gif) no-repeat top left;&amp;quot;&amp;gt;&lt;br /&gt;
{else}&lt;br /&gt;
&amp;lt;div class=&amp;quot;header&amp;quot; style=&amp;quot;background:url(images/header_{$siteData.COUNTRY3}_rv.gif) no-repeat top left;&amp;quot;&amp;gt;&lt;br /&gt;
{/if}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
so i need to change the {if} {else} where i need to mention that if i am accessing &lt;a href=&quot;http://localhost/sites/template2.com&quot; target=&quot;_blank&quot;&gt;http://localhost/sites/template2.com&lt;/a&gt; then the header image should be different.&lt;br /&gt;
&lt;br /&gt;
any help will be greatly appreciated.&lt;br /&gt;
&lt;br /&gt;
please advice.&lt;br /&gt;
&lt;br /&gt;
thanks.</description>
                                        <comments>http://htmlcodetutorial.com/help/viewtopic.php?p=55821#55821</comments>
                                        <author>sudhakararaog</author>
                                        <pubDate>Thu Nov 05, 2009 3:20 pm</pubDate>
                                        <guid isPermaLink="true">http://htmlcodetutorial.com/help/viewtopic.php?p=55821#55821</guid>
                                      </item>
                                      <item>
                                        <title>Creatign a Referral Form to put into a site</title>
                                        <link>http://htmlcodetutorial.com/help/viewtopic.php?p=55788#55788</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://htmlcodetutorial.com/help/profile.php?mode=viewprofile&amp;u=13957'&gt;PayneLess Designs&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Nov 04, 2009 1:40 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      &amp;quot;.js&amp;quot; files are the JavaScript files that will be used. The &amp;quot;.css&amp;quot; file is the presentation or styling file which you use to style the form to match the theme of your site.</description>
                                        <comments>http://htmlcodetutorial.com/help/viewtopic.php?p=55788#55788</comments>
                                        <author>PayneLess Designs</author>
                                        <pubDate>Wed Nov 04, 2009 1:40 pm</pubDate>
                                        <guid isPermaLink="true">http://htmlcodetutorial.com/help/viewtopic.php?p=55788#55788</guid>
                                      </item>
                                      <item>
                                        <title>PHP Code  (For Bots)</title>
                                        <link>http://htmlcodetutorial.com/help/viewtopic.php?p=55736#55736</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://htmlcodetutorial.com/help/profile.php?mode=viewprofile&amp;u=27099'&gt;leahmarie&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon Nov 02, 2009 10:39 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Is this for real? And how it will possibly work for the bots. Any further explanation because I'm very interested on the output of this code later on.</description>
                                        <comments>http://htmlcodetutorial.com/help/viewtopic.php?p=55736#55736</comments>
                                        <author>leahmarie</author>
                                        <pubDate>Mon Nov 02, 2009 10:39 pm</pubDate>
                                        <guid isPermaLink="true">http://htmlcodetutorial.com/help/viewtopic.php?p=55736#55736</guid>
                                      </item>
                                      <item>
                                        <title>search help</title>
                                        <link>http://htmlcodetutorial.com/help/viewtopic.php?p=55718#55718</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://htmlcodetutorial.com/help/profile.php?mode=viewprofile&amp;u=6576'&gt;Ruriko&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon Nov 02, 2009 4:35 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      hi I'm a newbie to php and I found a nice simple search engine script but the problem is if it can't find something it shows&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;br /&gt;&lt;tr&gt; &lt;br /&gt;	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Quote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;	&lt;/tr&gt;&lt;br /&gt;	&lt;tr&gt;&lt;br /&gt;	  &lt;td class=&quot;quote&quot;&gt;Results&lt;br /&gt;
&lt;br /&gt;
Sorry, your search: &amp;quot;gd&amp;quot; returned zero results&lt;br /&gt;
&lt;br /&gt;
Click here to try the search on google&lt;br /&gt;
&lt;br /&gt;
You searched for: &amp;quot;gd&amp;quot;&lt;br /&gt;
Results&lt;br /&gt;
&lt;br /&gt;
 Next 10 &amp;gt;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Showing results 1 to 0 of 0&lt;/td&gt;&lt;br /&gt;	&lt;/tr&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
I want to remove Results&lt;br /&gt;
&lt;br /&gt;
 Next 10 &amp;gt;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Showing results 1 to 0 of 0&lt;br /&gt;
&lt;br /&gt;
how can I do this?&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;br /&gt;&lt;tr&gt; &lt;br /&gt;	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;	&lt;/tr&gt;&lt;br /&gt;	&lt;tr&gt;&lt;br /&gt;	  &lt;td class=&quot;code&quot;&gt;&amp;lt;?php&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; // Get the search variable from URL&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; $var = @$_GET&amp;#91;'q'&amp;#93; ;&lt;br /&gt;
&amp;nbsp; $trimmed = trim&amp;#40;$var&amp;#41;; //trim whitespace from the stored variable&lt;br /&gt;
&lt;br /&gt;
// rows to return&lt;br /&gt;
$limit=10; &lt;br /&gt;
&lt;br /&gt;
// check for an empty string and display a message.&lt;br /&gt;
if &amp;#40;$trimmed == &amp;quot;&amp;quot;&amp;#41;&lt;br /&gt;
&amp;nbsp; &amp;#123;&lt;br /&gt;
&amp;nbsp; echo &amp;quot;&amp;lt;p&amp;gt;Please enter a search...&amp;lt;/p&amp;gt;&amp;quot;;&lt;br /&gt;
&amp;nbsp; exit;&lt;br /&gt;
&amp;nbsp; &amp;#125;&lt;br /&gt;
&lt;br /&gt;
// check for a search parameter&lt;br /&gt;
if &amp;#40;!isset&amp;#40;$var&amp;#41;&amp;#41;&lt;br /&gt;
&amp;nbsp; &amp;#123;&lt;br /&gt;
&amp;nbsp; echo &amp;quot;&amp;lt;p&amp;gt;We dont seem to have a search parameter!&amp;lt;/p&amp;gt;&amp;quot;;&lt;br /&gt;
&amp;nbsp; exit;&lt;br /&gt;
&amp;nbsp; &amp;#125;&lt;br /&gt;
&lt;br /&gt;
//connect to your database ** EDIT REQUIRED HERE **&lt;br /&gt;
mysql_connect&amp;#40;&amp;quot;localhost&amp;quot;,&amp;quot;root&amp;quot;,&amp;quot;&amp;quot;&amp;#41;; //&amp;#40;host, username, password&amp;#41;&lt;br /&gt;
&lt;br /&gt;
//specify database ** EDIT REQUIRED HERE **&lt;br /&gt;
mysql_select_db&amp;#40;&amp;quot;bazaar&amp;quot;&amp;#41; or die&amp;#40;&amp;quot;Unable to select database&amp;quot;&amp;#41;; //select which database we're using&lt;br /&gt;
&lt;br /&gt;
// Build SQL Query&amp;nbsp; &lt;br /&gt;
$query = &amp;quot;select * from products where name like \&amp;quot;%$trimmed%\&amp;quot;&amp;nbsp; &lt;br /&gt;
&amp;nbsp; order by productID&amp;quot;; // EDIT HERE and specify your table and field names for the SQL query&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;$numresults=mysql_query&amp;#40;$query&amp;#41;;&lt;br /&gt;
&amp;nbsp;$numrows=mysql_num_rows&amp;#40;$numresults&amp;#41;;&lt;br /&gt;
&lt;br /&gt;
// If we have no results, offer a google search as an alternative&lt;br /&gt;
&lt;br /&gt;
if &amp;#40;$numrows == 0&amp;#41;&lt;br /&gt;
&amp;nbsp; &amp;#123;&lt;br /&gt;
&amp;nbsp; echo &amp;quot;&amp;lt;h4&amp;gt;Results&amp;lt;/h4&amp;gt;&amp;quot;;&lt;br /&gt;
&amp;nbsp; echo &amp;quot;&amp;lt;p&amp;gt;Sorry, your search&amp;#58; &amp;amp;quot;&amp;quot; . $trimmed . &amp;quot;&amp;amp;quot; returned zero results&amp;lt;/p&amp;gt;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
// google&lt;br /&gt;
&amp;nbsp;echo &amp;quot;&amp;lt;p&amp;gt;&amp;lt;a href=\&amp;quot;http&amp;#58;//www.google.com/search?q=&amp;quot; &lt;br /&gt;
&amp;nbsp; . $trimmed . &amp;quot;\&amp;quot; target=\&amp;quot;_blank\&amp;quot; title=\&amp;quot;Look up &lt;br /&gt;
&amp;nbsp; &amp;quot; . $trimmed . &amp;quot; on Google\&amp;quot;&amp;gt;Click here&amp;lt;/a&amp;gt; to try the &lt;br /&gt;
&amp;nbsp; search on google&amp;lt;/p&amp;gt;&amp;quot;;&lt;br /&gt;
&amp;nbsp; &amp;#125;&lt;br /&gt;
&lt;br /&gt;
// next determine if s has been passed to script, if not use 0&lt;br /&gt;
&amp;nbsp; if &amp;#40;empty&amp;#40;$s&amp;#41;&amp;#41; &amp;#123;&lt;br /&gt;
&amp;nbsp; $s=0;&lt;br /&gt;
&amp;nbsp; &amp;#125;&lt;br /&gt;
&lt;br /&gt;
// get results&lt;br /&gt;
&amp;nbsp; $query .= &amp;quot; limit $s,$limit&amp;quot;;&lt;br /&gt;
&amp;nbsp; $result = mysql_query&amp;#40;$query&amp;#41; or die&amp;#40;&amp;quot;Couldn't execute query&amp;quot;&amp;#41;;&lt;br /&gt;
&lt;br /&gt;
// display what the person searched for&lt;br /&gt;
echo &amp;quot;&amp;lt;p&amp;gt;You searched for&amp;#58; &amp;amp;quot;&amp;quot; . $var . &amp;quot;&amp;amp;quot;&amp;lt;/p&amp;gt;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
// begin to show results set&lt;br /&gt;
echo &amp;quot;Results &amp;lt;br /&amp;gt;&amp;quot;;&lt;br /&gt;
$count = 1 + $s ;&lt;br /&gt;
&lt;br /&gt;
// now you can display the results returned&lt;br /&gt;
&amp;nbsp; while &amp;#40;$row= mysql_fetch_array&amp;#40;$result&amp;#41;&amp;#41; &amp;#123;&lt;br /&gt;
&amp;nbsp; $title = $row&amp;#91;&amp;quot;name&amp;quot;&amp;#93;;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; echo &amp;quot;$count.&amp;#41;&amp;amp;nbsp;$title &amp;lt;br /&amp;gt;&amp;quot; ;&lt;br /&gt;
&amp;nbsp; $count++ ;&lt;br /&gt;
&amp;nbsp; &amp;#125;&lt;br /&gt;
&lt;br /&gt;
$currPage = &amp;#40;&amp;#40;$s/$limit&amp;#41; + 1&amp;#41;;&lt;br /&gt;
&lt;br /&gt;
//break before paging&lt;br /&gt;
&amp;nbsp; echo &amp;quot;&amp;lt;br /&amp;gt;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; // next we need to do the links to other results&lt;br /&gt;
&amp;nbsp; if &amp;#40;$s&amp;gt;=1&amp;#41; &amp;#123; // bypass PREV link if s is 0&lt;br /&gt;
&amp;nbsp; $prevs=&amp;#40;$s-$limit&amp;#41;;&lt;br /&gt;
&amp;nbsp; print &amp;quot;&amp;amp;nbsp;&amp;lt;a href=\&amp;quot;$PHP_SELF?s=$prevs&amp;amp;q=$var\&amp;quot;&amp;gt;&amp;amp;lt;&amp;amp;lt; &lt;br /&gt;
&amp;nbsp; Prev 10&amp;lt;/a&amp;gt;&amp;amp;nbsp&amp;amp;nbsp;&amp;quot;;&lt;br /&gt;
&amp;nbsp; &amp;#125;&lt;br /&gt;
&lt;br /&gt;
// calculate number of pages needing links&lt;br /&gt;
&amp;nbsp; $pages=intval&amp;#40;$numrows/$limit&amp;#41;;&lt;br /&gt;
&lt;br /&gt;
// $pages now contains int of pages needed unless there is a remainder from division&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; if &amp;#40;$numrows%$limit&amp;#41; &amp;#123;&lt;br /&gt;
&amp;nbsp; // has remainder so add one page&lt;br /&gt;
&amp;nbsp; $pages++;&lt;br /&gt;
&amp;nbsp; &amp;#125;&lt;br /&gt;
&lt;br /&gt;
// check to see if last page&lt;br /&gt;
&amp;nbsp; if &amp;#40;!&amp;#40;&amp;#40;&amp;#40;$s+$limit&amp;#41;/$limit&amp;#41;==$pages&amp;#41; &amp;amp;&amp;amp; $pages!=1&amp;#41; &amp;#123;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; // not last page so give NEXT link&lt;br /&gt;
&amp;nbsp; $news=$s+$limit;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; echo &amp;quot;&amp;amp;nbsp;&amp;lt;a href=\&amp;quot;$PHP_SELF?s=$news&amp;amp;q=$var\&amp;quot;&amp;gt;Next 10 &amp;amp;gt;&amp;amp;gt;&amp;lt;/a&amp;gt;&amp;quot;;&lt;br /&gt;
&amp;nbsp; &amp;#125;&lt;br /&gt;
&lt;br /&gt;
$a = $s + &amp;#40;$limit&amp;#41; ;&lt;br /&gt;
&amp;nbsp; if &amp;#40;$a &amp;gt; $numrows&amp;#41; &amp;#123; $a = $numrows ; &amp;#125;&lt;br /&gt;
&amp;nbsp; $b = $s + 1 ;&lt;br /&gt;
&amp;nbsp; echo &amp;quot;&amp;lt;p&amp;gt;Showing results $b to $a of $numrows&amp;lt;/p&amp;gt;&amp;quot;;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
?&amp;gt;&lt;/td&gt;&lt;br /&gt;	&lt;/tr&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;span class=&quot;postbody&quot;&gt;</description>
                                        <comments>http://htmlcodetutorial.com/help/viewtopic.php?p=55718#55718</comments>
                                        <author>Ruriko</author>
                                        <pubDate>Mon Nov 02, 2009 4:35 am</pubDate>
                                        <guid isPermaLink="true">http://htmlcodetutorial.com/help/viewtopic.php?p=55718#55718</guid>
                                      </item>
                                      <item>
                                        <title>how to resize the background image of a &amp;lt;td&amp;gt; tag</title>
                                        <link>http://htmlcodetutorial.com/help/viewtopic.php?p=55632#55632</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://htmlcodetutorial.com/help/profile.php?mode=viewprofile&amp;u=12865'&gt;sticks464&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Oct 28, 2009 1:44 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Since width and height is not applied to background images you'll have to resize to the actual size of the td.</description>
                                        <comments>http://htmlcodetutorial.com/help/viewtopic.php?p=55632#55632</comments>
                                        <author>sticks464</author>
                                        <pubDate>Wed Oct 28, 2009 1:44 pm</pubDate>
                                        <guid isPermaLink="true">http://htmlcodetutorial.com/help/viewtopic.php?p=55632#55632</guid>
                                      </item>
                                      <item>
                                        <title>PHP Login</title>
                                        <link>http://htmlcodetutorial.com/help/viewtopic.php?p=55607#55607</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://htmlcodetutorial.com/help/profile.php?mode=viewprofile&amp;u=21455'&gt;curtranhome&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Oct 27, 2009 12:02 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      ok thanks for the links - but I was wondering if there was a way to create a script that doesn't require any database software. I was thinking along the lines of a multiple if... elseif.... else..... statement.&lt;br /&gt;
&lt;br /&gt;
Thank you,&lt;br /&gt;
curtranhome</description>
                                        <comments>http://htmlcodetutorial.com/help/viewtopic.php?p=55607#55607</comments>
                                        <author>curtranhome</author>
                                        <pubDate>Tue Oct 27, 2009 12:02 pm</pubDate>
                                        <guid isPermaLink="true">http://htmlcodetutorial.com/help/viewtopic.php?p=55607#55607</guid>
                                      </item>
                                      <item>
                                        <title>add info to links</title>
                                        <link>http://htmlcodetutorial.com/help/viewtopic.php?p=55604#55604</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://htmlcodetutorial.com/help/profile.php?mode=viewprofile&amp;u=12865'&gt;sticks464&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Oct 27, 2009 3:58 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Take a look &lt;a href=&quot;http://wintermute.com.au/bits/2005-09/php-relative-absolute-links/&quot; target=&quot;_blank&quot; class=&quot;postlink&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;. May be what you want for php links.&lt;br /&gt;
&lt;br /&gt;
You may get a better answer &lt;a href=&quot;http://www.phpfreaks.com/forums/&quot; target=&quot;_blank&quot; class=&quot;postlink&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</description>
                                        <comments>http://htmlcodetutorial.com/help/viewtopic.php?p=55604#55604</comments>
                                        <author>sticks464</author>
                                        <pubDate>Tue Oct 27, 2009 3:58 am</pubDate>
                                        <guid isPermaLink="true">http://htmlcodetutorial.com/help/viewtopic.php?p=55604#55604</guid>
                                      </item>
                                      <item>
                                        <title>Variable iframe height or header redirection</title>
                                        <link>http://htmlcodetutorial.com/help/viewtopic.php?p=55262#55262</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://htmlcodetutorial.com/help/profile.php?mode=viewprofile&amp;u=28181'&gt;tiepich&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Fri Oct 16, 2009 9:01 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi, I need help. I was asked to add a php form (survey) to existing web site. I do not have access to the hosting server and the code of the web site, which is Nuke CMS. All I could do is add a new page with html code and iframe in it and locate the survey form on my server and call it.&lt;br /&gt;
&lt;br /&gt;
I have an issue with redirecting to another survey form when the user hits &amp;quot;submit&amp;quot;. It is made via header(refresh;url;) function, but that doesn't allow me to add a target attribute, so I can jump out of the iframe and load the second form to new page with shorter iframe height (both surveys have different height). Is there any other way I can force the redirection to use &amp;quot;top&amp;quot; parameter or make iframe with variable height even though I do not have an access to the main holding page code (for adding a script into Head section)?&lt;br /&gt;
&lt;br /&gt;
Thanks a lot for your help</description>
                                        <comments>http://htmlcodetutorial.com/help/viewtopic.php?p=55262#55262</comments>
                                        <author>tiepich</author>
                                        <pubDate>Fri Oct 16, 2009 9:01 am</pubDate>
                                        <guid isPermaLink="true">http://htmlcodetutorial.com/help/viewtopic.php?p=55262#55262</guid>
                                      </item>
                                      <item>
                                        <title>Text area</title>
                                        <link>http://htmlcodetutorial.com/help/viewtopic.php?p=55193#55193</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://htmlcodetutorial.com/help/profile.php?mode=viewprofile&amp;u=13957'&gt;PayneLess Designs&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Oct 13, 2009 7:19 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Can't test any PHP, but there may be a PHP version of this:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://tinymce.moxiecode.com/&quot; target=&quot;_blank&quot; class=&quot;postlink&quot; rel=&quot;nofollow&quot;&gt;TinyMCE - Javascript WYSIWYG Editor&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Maybe...&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://gscripts.net/free-php-scripts/WYSIWYG_HTML_editor.html&quot; target=&quot;_blank&quot; class=&quot;postlink&quot; rel=&quot;nofollow&quot;&gt;WYSIWYG HTML editor&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;br /&gt;&lt;tr&gt; &lt;br /&gt;	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Quote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;	&lt;/tr&gt;&lt;br /&gt;	&lt;tr&gt;&lt;br /&gt;	  &lt;td class=&quot;quote&quot;&gt;WYSIWYG HTML EditorThese are free  WYSIWYG HTML editors that can be easily implemented in your site to allow your visitors to post html content and photos&lt;br /&gt;
&lt;/td&gt;&lt;br /&gt;	&lt;/tr&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
This may help you solve your new line problem:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.kirupa.com/forum/showthread.php?p=2506537&quot; target=&quot;_blank&quot; class=&quot;postlink&quot; rel=&quot;nofollow&quot;&gt;Mailer - New lines within textarea problem&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://forums.codecharge.com/posts.php?post_id=46647&quot; target=&quot;_blank&quot; class=&quot;postlink&quot; rel=&quot;nofollow&quot;&gt;New line or break line on TextArea Fields&lt;/a&gt;</description>
                                        <comments>http://htmlcodetutorial.com/help/viewtopic.php?p=55193#55193</comments>
                                        <author>PayneLess Designs</author>
                                        <pubDate>Tue Oct 13, 2009 7:19 pm</pubDate>
                                        <guid isPermaLink="true">http://htmlcodetutorial.com/help/viewtopic.php?p=55193#55193</guid>
                                      </item>
                                      <item>
                                        <title>a quiz contest</title>
                                        <link>http://htmlcodetutorial.com/help/viewtopic.php?p=54384#54384</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://htmlcodetutorial.com/help/profile.php?mode=viewprofile&amp;u=27763'&gt;googlemaniac&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon Sep 14, 2009 9:10 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      hi&lt;br /&gt;
i would like to build a website with the following spacifications.&lt;br /&gt;
&lt;br /&gt;
50 webpages,say numbered 1 to 50.&lt;br /&gt;
each page has a question written in it which has one answer.&lt;br /&gt;
suppose a registered user is at page 1.Only the right answer to q1 in page 1 would direct him to page 2.And he is awarded 1 point.&lt;br /&gt;
&lt;br /&gt;
similarly,only and when he answers q2,he should be directed to q3 and so on..&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
users should be allowed to register for this contest and login to their respective pages. &lt;br /&gt;
also,the points tally should be shown in a different page.&lt;br /&gt;
&lt;br /&gt;
I am a newbie,I have no idea how make this possible,and i hope i am clear.</description>
                                        <comments>http://htmlcodetutorial.com/help/viewtopic.php?p=54384#54384</comments>
                                        <author>googlemaniac</author>
                                        <pubDate>Mon Sep 14, 2009 9:10 pm</pubDate>
                                        <guid isPermaLink="true">http://htmlcodetutorial.com/help/viewtopic.php?p=54384#54384</guid>
                                      </item>
                                      <item>
                                        <title>Confirmation page problem</title>
                                        <link>http://htmlcodetutorial.com/help/viewtopic.php?p=54199#54199</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://htmlcodetutorial.com/help/profile.php?mode=viewprofile&amp;u=13957'&gt;PayneLess Designs&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sun Sep 06, 2009 11:33 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      &lt;span style=&quot;color: darkred&quot;&gt;Please do not post same topic more than once. Removed. Original post &lt;a href=&quot;http://www.htmlcodetutorial.com/help/ftopic15806.html&amp;amp;highlight=&quot; target=&quot;_blank&quot; class=&quot;postlink&quot; rel=&quot;nofollow&quot;&gt;HERE&lt;/a&gt;.&lt;/span&gt;</description>
                                        <comments>http://htmlcodetutorial.com/help/viewtopic.php?p=54199#54199</comments>
                                        <author>PayneLess Designs</author>
                                        <pubDate>Sun Sep 06, 2009 11:33 pm</pubDate>
                                        <guid isPermaLink="true">http://htmlcodetutorial.com/help/viewtopic.php?p=54199#54199</guid>
                                      </item></channel></rss>