<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1015291" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1015291</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-problem-need-help#comment-1088514</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: &lt;em&gt;Originally posted by Busy &lt;/em&gt;&lt;br /&gt;
&lt;strong&gt;Thanks,&lt;br /&gt;
that works the same way as what i had, displaying the increased id number by one, what I was aftr was it displaying the link connected to that id number.&lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;sorry....&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// with &#039;h&#039;&lt;br /&gt;//change:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;echo ${\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;h\&quot;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;}; &lt;br /&gt;//into&lt;br /&gt;echo &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;h\&quot;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;];&lt;br /&gt;&lt;br /&gt;// without &#039;h&#039;&lt;br /&gt;//change:&lt;br /&gt;echo &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;; &lt;br /&gt;//into&lt;br /&gt;echo &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;;&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 02 Sep 2001 03:06:48 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1088514 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-problem-need-help#comment-1088512</link>
    <description> &lt;p&gt;Thanks,&lt;br /&gt;
that works the same way as what i had, displaying the increased id number by one, what I was aftr was it displaying the link connected to that id number.&lt;/p&gt;
&lt;p&gt;I do need to learn databases, I was just hoping I could get a good grasp of PHP before learning another language.&lt;/p&gt;
&lt;p&gt;&amp;lt;?&lt;br /&gt;
if(Mark == big help){&lt;br /&gt;
echo(&quot;Thanks&quot;);&lt;br /&gt;
}else{&lt;br /&gt;
blow a raspberry&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;/p&gt;
&lt;p&gt;Thanks  &lt;/p&gt;
&lt;p&gt;**I&#039;m sure the more I learn, the more I forget**&lt;/p&gt;
 </description>
     <pubDate>Sun, 02 Sep 2001 03:02:37 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1088512 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-problem-need-help#comment-1088504</link>
    <description> &lt;p&gt;I&#039;m sorry, I forgot about the &#039;h&#039; on page 3.  Do you need the &#039;h&#039;?  I would work better without it.&lt;/p&gt;
&lt;p&gt;with &#039;h&#039;&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//second page&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;include(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;addtodisplaylist.php\&quot;);&lt;br /&gt;if (ereg(\&quot;^[0-9]*$\&quot;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //the ereg() makes sure that &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; is numeric&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;++;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;${\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;h\&quot;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;}; &lt;br /&gt;}&lt;br /&gt;else { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo(\&quot;&amp;lt;a href=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;listpic&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;php&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;gt;list pictures&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;\&quot;); &lt;br /&gt;} &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//third page (addtodisplaylist.php)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=1000;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;h\&quot;.++&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;] = (&#039;&amp;lt;br&amp;gt;&amp;lt;a href=\&quot;displaypic.php?name=water-texture&amp;amp;width=160&amp;amp;height=140&amp;amp;id=h&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;&amp;gt;pic 1&amp;lt;/a&amp;gt;&#039;); &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;h\&quot;.++&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;] = (&#039;&amp;lt;br&amp;gt;&amp;lt;a href=\&quot;displaypic.php?name=graph&amp;amp;width=160&amp;amp;height=140&amp;amp;id=h&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;&amp;gt;pic 2&amp;lt;/a&amp;gt;&#039;); &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;h\&quot;.++&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;] = &lt;br /&gt;....&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
without &#039;h&#039;&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//second page&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;include(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;addtodisplaylist.php\&quot;);&lt;br /&gt;if (ereg(\&quot;^[0-9]*$\&quot;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //the ereg() makes sure that &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; is numeric&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;++;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;; &lt;br /&gt;}&lt;br /&gt;else { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo(\&quot;&amp;lt;a href=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;listpic&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;php&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;gt;list pictures&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;\&quot;); &lt;br /&gt;} &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//third page (addtodisplaylist.php)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=1000;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[++&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = (&#039;&amp;lt;br&amp;gt;&amp;lt;a href=\&quot;displaypic.php?name=water-texture&amp;amp;width=160&amp;amp;height=140&amp;amp;id=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;&amp;gt;pic 1&amp;lt;/a&amp;gt;&#039;); &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[++&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = (&#039;&amp;lt;br&amp;gt;&amp;lt;a href=\&quot;displaypic.php?name=graph&amp;amp;width=160&amp;amp;height=140&amp;amp;id=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;&amp;gt;pic 2&amp;lt;/a&amp;gt;&#039;); &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[++&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = &lt;br /&gt;....&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
For both examples above, $id should be numeric (only numbers, no letters).  The ereg() function searches $id for the pattern I specified, and returns true if the pattern is found to be true, and false if not.  The pattern I specified requires that the value contains only the numbers 0 through 9, and no other characters (letters, punctuation, spaces, etc.).&lt;/p&gt;
&lt;p&gt;I would &lt;strong&gt;highly&lt;/strong&gt; recommend learning to use a database.  It would make this a whole lot easier to maintain, and you can apply that DB knowledge elsewhere.&lt;/p&gt;
 </description>
     <pubDate>Sun, 02 Sep 2001 01:01:06 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1088504 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-problem-need-help#comment-1088503</link>
    <description> &lt;p&gt;Mark, Thanks, I tried what you suggested but it didnt work &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;I don&#039;t understand all that ereg stuff yet but shouldnt somewhere in there point to $i ?&lt;/p&gt;
&lt;p&gt;on the first page do I asign the id to 1001 or h1001 ? (tryed both, neither worked) also wouldnt the id on the first page have to be the same as the third page?&lt;/p&gt;
&lt;p&gt;I realise this is going to end up as one massive array which you have mentioned becoming very undesirable.&lt;/p&gt;
&lt;p&gt;should I carry on pursueing this, or just learn databases, I am learning a lot of what not to do doing this lol&lt;/p&gt;
 </description>
     <pubDate>Sun, 02 Sep 2001 00:24:10 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1088503 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-problem-need-help#comment-1088454</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: &lt;em&gt;Originally posted by Busy &lt;/em&gt;&lt;br /&gt;
&lt;strong&gt;I think I need to add &quot;h&quot; into the $id, making it $h1002 etc as all i&#039;m doing so far is just printing the h1002, not the var itself, $h$id doesnt work, $h + $id doesnt work&lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;What your looking for is this:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;echo ${\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;h\&quot;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;};&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;I would do this:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//second page&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;include(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;addtodisplaylist.php\&quot;);&lt;br /&gt;if (ereg(\&quot;^[0-9]*$\&quot;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //the ereg() makes sure that &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; is numeric&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;++;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;${\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;h\&quot;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;}; &lt;br /&gt;}&lt;br /&gt;else { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo(\&quot;&amp;lt;a href=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;listpic&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;php&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;gt;list pictures&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;\&quot;); &lt;br /&gt;} &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//third page (addtodisplaylist.php)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=1000;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[++&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = (&#039;&amp;lt;br&amp;gt;&amp;lt;a href=\&quot;displaypic.php?name=water-texture&amp;amp;width=160&amp;amp;height=140&amp;amp;id=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;&amp;gt;pic 1&amp;lt;/a&amp;gt;&#039;); &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[++&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = (&#039;&amp;lt;br&amp;gt;&amp;lt;a href=\&quot;displaypic.php?name=graph&amp;amp;width=160&amp;amp;height=140&amp;amp;id=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;&amp;gt;pic 2&amp;lt;/a&amp;gt;&#039;); &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[++&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = &lt;br /&gt;....&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
You can read more about variable variables &lt;a href=&quot;http://php.net/manual/en/language.variables.variable.php&quot; class=&quot;bb-url&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Good Luck,&lt;/p&gt;
 </description>
     <pubDate>Sat, 01 Sep 2001 07:45:43 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1088454 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-problem-need-help#comment-1088451</link>
    <description> &lt;p&gt;I&#039;m sturbon and am determined to solve this &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;I&#039;ve added another page with the list of links with an id=1001 (increasing in number down the list) I can get the second page to see this id number and then add one displaying the  next one, I cant however get this id number to show as the item it is.&lt;/p&gt;
&lt;p&gt;for the next link on the second page, i have:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;include(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;addtodisplaylist.php&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;== &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;+ &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//echo(&quot;&amp;lt;a href=\&quot;&quot;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;echo (&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;h&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) ;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//echo(&quot;\&quot;&amp;gt;Next&amp;lt;/a&amp;gt;&quot;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;}else{&lt;br /&gt;echo(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;a href=\&quot;listpic.php\&quot;&amp;gt;list pictures&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;for the third page (addtodisplaylist.php), i have:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$h1001 &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= (&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&amp;lt;br&amp;gt;&amp;lt;a href=&quot;displaypic.php?name=water-texture&amp;amp;width=160&amp;amp;height=140&amp;amp;id=1001&quot;&amp;gt;pic 1&amp;lt;/a&amp;gt;&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$h1002 &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= (&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&amp;lt;br&amp;gt;&amp;lt;a href=&quot;displaypic.php?name=graph&amp;amp;width=160&amp;amp;height=140&amp;amp;id=1002&quot;&amp;gt;pic 2&amp;lt;/a&amp;gt;&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$h1003 &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;br /&gt;......&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;the links on the first page are the same as the third, but have assigned them to $h1001, $h1002 etc&lt;/p&gt;
&lt;p&gt;instead of it displaying h1002, how can I associate it to the link needed?&lt;/p&gt;
&lt;p&gt;I think I need to add &quot;h&quot; into the $id, making it $h1002 etc as all i&#039;m doing so far is just printing the h1002, not the var itself, $h$id doesnt work, $h + $id doesnt work&lt;/p&gt;
&lt;p&gt;**I just know i&#039;ll be bald before I figure this out :)**&lt;/p&gt;
 </description>
     <pubDate>Sat, 01 Sep 2001 06:12:48 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1088451 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-problem-need-help#comment-1088277</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: Another approach might be just to use the JavaScript back() and forward() methods. &lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;you mean history-1 etc? but if they clicked say number 5 from the list they wouldnt have a forward and back would be the index.&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: You could make an array with all the filenames&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;could I break an array into, say 50 or 100 arrays and call it from one field?&lt;/p&gt;
&lt;p&gt;I might try naming the images by numbers like you mentioned and calling the next and previous by that, other than that I guess I have to use a database&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
 </description>
     <pubDate>Thu, 30 Aug 2001 01:23:24 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1088277 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-problem-need-help#comment-1088269</link>
    <description> &lt;p&gt;If you make all your image names numeric, it would be easy.&lt;br /&gt;
You could make an array with all the filenames, but 2,000 images makes this very undesirable.&lt;/p&gt;
 </description>
     <pubDate>Wed, 29 Aug 2001 23:34:05 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1088269 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-problem-need-help#comment-1088227</link>
    <description> &lt;p&gt;Another approach might be just to use the JavaScript back() and forward() methods.&lt;/p&gt;
&lt;p&gt;I know it&#039;s not a PHP solution but it might be simpler.&lt;/p&gt;
 </description>
     <pubDate>Wed, 29 Aug 2001 13:08:11 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1088227 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
