PHP Array - some further problems with displaying elements in the array
<p>Using Brian's suggestion below:</p>

<pre><code>foreach($qs as $value){
                echo "&lt;tr&gt;".$value['qnum']." is the questions number and the question text is ".$value['qtext'].". The page and q values are ".$value['page']." and ".$value['questions']." respectively.&lt;/tr&gt;";
        }
</code></pre>

<p>I get the following output from the array, which isn't right:</p>

<p><code>8 is the questions number and the question text is I know how what I do fits into my team's objectives. The page and q values are 1 and q8 respectively.8 is the questions number and the question text is I know how what I do fits into my team's objectives. The page and q values are 1 and q8 respectively.8 is the questions number and the question text is I know how what I do fits into my team's objectives. The page and q values are 1 and q8 respectively.8 is the questions number and the question text is I know how what I do fits into my team's objectives. The page and q values are 1 and q8 respectively.8 is the questions number and the question text is I know how what I do fits into my team's objectives. The page and q values are 1 and q8 respectively.8 is the questions number and the question text is I know how what I do fits into my team's objectives. The page and q values are 1 and q8 respectively.8 is the questions number and the question text is I know how what I do fits into my team's objectives. The page and q values are 1 and q8 respectively.8 is the questions number and the question text is I know how what I do fits into my team's objectives. The page and q values are 1 and q8 respectively</code></p>

<p>Any further suggestions.</p>

<p>Homer.</p>

<p>Hi again,</p>

<p>Thanks in advance for the help.</p>

<p>Here is my array based on <code>$rowq</code>:</p>

<pre><code>Array (
 [0] =&gt; Array (
       [questions] =&gt; q8
       [qnum] =&gt; 8
       [qtext] =&gt; I know how what I do fits into my team's objectives
       [page] =&gt; 1
       )
 [1] =&gt; Array (
       [questions] =&gt; q8
       [qnum] =&gt; 8
       [qtext] =&gt; I know how what I do fits into my team's objectives
       [page] =&gt; 1
       ) 
 [2] =&gt; Array (
       [questions] =&gt; q8
       [qnum] =&gt; 8
       [qtext] =&gt; I know how what I do fits into my team's objectives
       [page] =&gt; 1
       ) 
 [3] =&gt; Array (
       [questions] =&gt; q8 
       [qnum] =&gt; 8
       [qtext] =&gt; I know how what I do fits into my team's objectives
       [page] =&gt; 1
       )
 [4] =&gt; Array (
       [questions] =&gt; q8
       [qnum] =&gt; 8
       [qtext] =&gt; I know how what I do fits into my team's objectives
       [page] =&gt; 1  
       )
 [5] =&gt; Array (
      [questions] =&gt; q8 
      [qnum] =&gt; 8 
      [qtext] =&gt; I know how what I do fits into my team's objectives
      [page] =&gt; 1 
      )
 [6] =&gt; Array (
      [questions] =&gt; q8 
      [qnum] =&gt; 8
      [qtext] =&gt; I know how what I do fits into my team's objectives
      [page] =&gt; 1
      )
 [7] =&gt; Array (
      [questions] =&gt; q8
      [qnum] =&gt; 8
      [qtext] =&gt; I know how what I do fits into my team's objectives
      [page] =&gt; 1
      ) 
 )
</code></pre>

<p>I would like to display elements of the array, looping through each row using (i think) the <code>foreach</code> statement but I can't get it working, ideally, I would like to echo something like this</p>

<pre><code>echo "&lt;tr&gt;".$rowq[qnum]." is the questions number and the question text is ".$rowq[qtext].".  The page and q values are ".$rowq[page]." and ".$rowq[questions]." respectively.";
</code></pre>

<p>And that link of text would appear however many rows the array has in it.</p>

<p>Any and all advice appreciated - I'm struggling like heck to get my head around multi-dimensional arrays :(</p>

<p>Homer.</p>
