I am currently displaying results as rows when I would like them in columns and cannot seem to get them to work in the array. need someone to help me! for FREE! will in turn have your link as my sig for a month! regards, seb
i guess this works fine <?php echo "<table border=\"1\">"; $tr = "1"; for ($i=1;$i<=15;$i++) // <-- replace this with while statement { if($tr == "1") { echo "<tr>"; } echo "<td>"; echo "data"; //<-- replace this for resuklts echo "</td>"; $tr++; if ($tr == "4") { echo "</tr>"; $tr = "1"; } } // end of your while statement. echo "</table>"; ?> PHP: