Display column result  as row result  php
<p>I am sure the title is not even right on this one. 
Here is the issue , I have <strong>3</strong> columns and <strong>6</strong> results 
that are displayed like this </p>

<pre><code>Column1           Column2             Column3
result1           result3             result5
result2           result4             result6
</code></pre>

<p>but need them like this </p>

<pre><code>Column1           Column2             Column3
result1           result2             result3
result4           result5             result6
</code></pre>

<p>my array holds all 6 results and so far I see I need to pick  every 0 and 2nd to be displayed in column1 and continue( array starts at 0).</p>

<p>the code is pretty large but the main part for switching results is here</p>

<pre><code>$count = count($result);
for ($result = 0; $result &lt; $count; $result++) {
                    $getorder= "";
                    if ($count != 1) {
                        if ($result == 0) $getorder= "first";
                        if ($result == $count - 1) $getorder= "last";
                    }


    echo '&lt;div class="'.$getorder.'width'.intval(100 / $count).'"&gt;'.$mycolumn[$result].'&lt;/div&gt;';
}
</code></pre>

<p>so this here should have some kind of division. Here is just dumb example</p>

<pre><code>$mycolumn[$result % X == X]
</code></pre>

<p>i hope I did not confuse you and you get the idea.  If you ask yourself why i don't just do rows instead columns , answer is complete css reconstructions. whit this here figured out I can target the results and keep columns and css as they are</p>
