<input type="text" name="description" value="<?php echo $description; ?> "> <input type="text" name="user" value="<?php echo $user; ?> "> <input type="submit" name="send" value="Consult"> </form> </body> <?php $markupFields = "<table><tr>"; $daoAlbum = new AlbumDao(); $fields = $daoAlbum->getFields(); foreach ($fields as $field) { $markupFields .= "<th>" . $field . "</th>"; } $markupFields .= "</tr></table>"; echo $markupFields; $albuns = $daoAlbum->getAll(); $markup = "<table>\n\t\t<tr>"; $markup .= "</tr>"; foreach ($albuns as $album) { $r = "<tr>"; $r .= "<td>" . $album->getID() . "</td><td>" . $album->getTitle() . "</td><td>" . $album->getDescription() . "</td><td>" . $album->getUserId(); $r .= "<td><a href='update.php?id=" . $album->getID() . "'>Modify</a>"; $r .= "</td></tr>"; $markup .= $r; }