<li><a href="removeUsers.php"><span>Remove users</span></a></li> </ul></div> </li> <li class="last"><a href="index.php"><span>view site</span></a></li> </ul> </div> <br /> <div id="main"> <h2>Column 1</h2> <?php if (isset($_POST['submit'])) { $key = $_POST['key']; echo "<table border='2' cellspacing='2' cellpadding='2'><tr>\r\n <th><font face='Arial, Helvetica, sans-serif'>Id</font></th>\r\n <th><font face='Arial, Helvetica, sans-serif'>Title</font></th>\r\n <th><font face='Arial, Helvetica, sans-serif'>Url</font></th>\r\n <th><font face='Arial, Helvetica, sans-serif'>Order</font></th>\r\n <th><font face='Arial, Helvetica, sans-serif'>Discription</font></th>\r\n </tr>"; $sections = $SectionM->findSections($key); for ($y = 1; $y - 1 < sizeof($sections); $y++) { // $categorie = $CategorieM->getCategories($categories[$y]); // $categories[$y] // echo $catID[$y]; //echo "<li><a href='".$catID[$y]."'>".$catID[$y]."</a></li>"; $field1 = $sections[$y]->getSec_id(); $field2 = $sections[$y]->getSec_title(); $field3 = $sections[$y]->getSec_url(); $field4 = $sections[$y]->getSec_order(); $field5 = $sections[$y]->getSec_despription(); echo "<tr><td>" . $field1 . "</td><td>" . $field2 . "</td><td>" . $field3 . "</td><td>" . $field4 . "</td><td>" . $field5 . "</td></tr>"; } echo "</table><br/><br/><br/><br/>"; } ?>