<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1018504" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1018504</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/complex-multidimensional-array-php-how-retrieve-data#comment-1108895</link>
    <description> &lt;p&gt;Yeah, I guess a multidimensional array = hash in Perl. I think, anyway. Now you&#039;ve got me all confused :-\&lt;/p&gt;
 </description>
     <pubDate>Tue, 14 May 2002 08:51:46 +0000</pubDate>
 <dc:creator>Wil</dc:creator>
 <guid isPermaLink="false">comment 1108895 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/complex-multidimensional-array-php-how-retrieve-data#comment-1108872</link>
    <description> &lt;p&gt;That&#039;s a multidimensional array, I&#039;ll have you know, and according to my Big Book of Computer Languages (otherwise known as Wrox&#039;s Professional PHP), it&#039;s specifically a three-dimensional array (level of nesting). &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Actually, now that I know how, roughly, to access the information, I find it easier to conceptualize than hashes. And I need to conceptualize in order to build things.&lt;/p&gt;
 </description>
     <pubDate>Mon, 13 May 2002 23:25:58 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1108872 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/complex-multidimensional-array-php-how-retrieve-data#comment-1108866</link>
    <description> &lt;p&gt;I&#039;m guessing...&lt;br /&gt;
PHP = associative array&lt;br /&gt;
PERL = hash table&lt;/p&gt;
 </description>
     <pubDate>Mon, 13 May 2002 22:19:01 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1108866 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/complex-multidimensional-array-php-how-retrieve-data#comment-1108864</link>
    <description> &lt;p&gt;Do you call those things arrays in PHP? Something looking like that would be a hash table in Perl :-\&lt;/p&gt;
 </description>
     <pubDate>Mon, 13 May 2002 21:25:21 +0000</pubDate>
 <dc:creator>Wil</dc:creator>
 <guid isPermaLink="false">comment 1108864 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/complex-multidimensional-array-php-how-retrieve-data#comment-1108863</link>
    <description> &lt;p&gt;k, still not sure why you can just name things willynilly, but I replaced the $n with $puzzle (and n with puzzle) to see if I understood how it went together, and it works! And I sort of understand why I need to have the category in there (because of the nested array, right?), so I&#039;m good with that. &lt;/p&gt;
&lt;p&gt;Thanks very much Mark!&lt;/p&gt;
&lt;p&gt;Currently viewable at &lt;a href=&quot;http://www.carterjackson.com/joshua/puzzle2.php&quot; class=&quot;bb-url&quot;&gt;carterjackson.com/joshua/puzzle2.php&lt;/a&gt; anyone who wants to see it in action.&lt;/p&gt;
 </description>
     <pubDate>Mon, 13 May 2002 20:57:27 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1108863 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/complex-multidimensional-array-php-how-retrieve-data#comment-1108831</link>
    <description> &lt;p&gt;Reading it over, I think I see where I was missing the point. Too much coding tonight and learning too much. Though as a plus, I can find my way around &lt;a href=&quot;http://www.php.net&quot; class=&quot;bb-url&quot;&gt;php.net&lt;/a&gt; easily now. MAN there are a lot of functions and 1400 ways to do everything.&lt;/p&gt;
 </description>
     <pubDate>Mon, 13 May 2002 07:48:36 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1108831 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/complex-multidimensional-array-php-how-retrieve-data#comment-1108830</link>
    <description> &lt;p&gt;Thanks, Mark. Wow, that looks totally different. I think I got beyond my skill level rapidly on this one. &lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.carterjackson.com/joshua/puzzle.php&quot; class=&quot;bb-url&quot;&gt;carterjackson.com/joshua/puzzle.php&lt;/a&gt; I did and it has two arrays -- one for the puzzle name and ID (jigzone&#039;s id number) and one for the possible cuts of the puzzle. The links, though, were hard coded.&lt;/p&gt;
&lt;p&gt;So I thought, well, I&#039;ll just kick this up a notch... ha.&lt;/p&gt;
&lt;p&gt;I&#039;ll see if I understand this in the morning, thanks very much, Mark, I appreciate your taking the time with this. My intention is to make it available once I get it done (if I get it done) for other people to be able to integrate multiple puzzles easily into their sites. &lt;/p&gt;
&lt;p&gt;Too big a leap! Doh! &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;
 </description>
     <pubDate>Mon, 13 May 2002 07:45:38 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1108830 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/complex-multidimensional-array-php-how-retrieve-data#comment-1108827</link>
    <description> &lt;p&gt;try 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;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$n &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;== \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;\&quot;) { Please choose a puzzle below. } &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;blah blah blah&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;foreach (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$pictures&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; as &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$category&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$data&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo \&quot;&amp;lt;h3&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$category&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;/h3&amp;gt;\n\&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo \&quot;&amp;lt;p&amp;gt;\n\&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$data&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; as &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$name&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$subdata&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; extract(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$subdata&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // now you can use &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; and &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$title&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo \&quot;&amp;lt;a href=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;puzzle2&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: #0000BB&quot;&gt;show&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;textlinks&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;c&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$category&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;n&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$name&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;#go\\&quot;&amp;gt;$title [link]&amp;lt;/a&amp;gt;\n\&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;echo \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;br /&amp;gt;\n\&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } //END foreach (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$data&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo \&quot;&amp;lt;/p&amp;gt;\n\&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;} //END foreach (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$pictures&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// blah blah blah&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// code for the jigzone puzzle itself, and an unload link&lt;br /&gt;&lt;br /&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$n&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; != \&quot;\&quot;) {&lt;br /&gt;&lt;br /&gt;//&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$pictures&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$c&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$n&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;][id]&lt;br /&gt;//&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$pictures&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$c&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$n&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;][title]&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$name&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$n&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ui&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$pictures&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$c&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$n&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;][id];&lt;br /&gt;&lt;br /&gt;echo &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ui&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// blah blah blah&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// removed two closing braces for the foreach&#039;s&lt;br /&gt;} //END if&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;I changed the link at the top and the way your getting the vars at the bottom.  All instances of $puzzle are now $n (short for name).&lt;/p&gt;
 </description>
     <pubDate>Mon, 13 May 2002 07:28:42 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1108827 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/complex-multidimensional-array-php-how-retrieve-data#comment-1108821</link>
    <description> &lt;p&gt;&lt;a href=&quot;http://www.carterjackson.com/joshua/puzzle2.phps&quot; class=&quot;bb-url&quot;&gt;http://www.carterjackson.com/joshua/puzzle2.phps&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I think I&#039;m going to have to rearrange how I get the information. As it is now, I can get ALL the puzzles to load at once, or just the last one, instead of as chosen. &lt;/p&gt;
&lt;p&gt;Phooey. I think I need to rethink how it goes together. Suggestions?&lt;/p&gt;
 </description>
     <pubDate>Mon, 13 May 2002 07:10:00 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1108821 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/complex-multidimensional-array-php-how-retrieve-data#comment-1108798</link>
    <description> &lt;p&gt;oh, shoot, now I can&#039;t get the $id to pass to the actual puzzle. shoot shoot shoot. I need the name and the id to be linked. I&#039;ll have to think about how to do that.&lt;/p&gt;
 </description>
     <pubDate>Mon, 13 May 2002 00:16:44 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1108798 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
