<?php include 'header.php'; include 'model.php'; $updateNews = new Model(); $id = $_GET['id']; $updateNews->selectOneNews($id); $rows = mysqli_fetch_array($updateNews->getQuery()); ?> <form action="update.php" method="post"> <table> <tr> <th><span>ID:</span></th> <td><input type="text" name="id" value="<?php echo $rows['id']; ?> "/></td> </tr> <tr> <th><span>Title:</span></th> <td><input type="text" name="title" value="<?php echo $rows['title']; ?> "/></td> </tr> <tr> <th><span>Description:</span></th> <td><textarea name="description" cols="30" rows="10"><?php echo $rows['description']; ?>