i have a function to display all the data, in table. the number of row return is correct(based on edit n delete button) but the value are not displayed.
public function viewAll()
{
$sql = "SELECT 'id','titleAnn','dateOpen','dateClose' FROM annoucement";
$query = mysql_query($sql);
while($row = mysql_fetch_array($query))
{
$id = $row['id'];
$title = $row['titleAnn'];
$dateOpen = $row['dateOpen'];
$dateClose = $row['dateClose'];
echo '<tr>
<td><?php echo $title ?></td>
<td><?php echo $dateOpen ?></td>
<td><?php echo $dateClose ?></td>
<td><a href="editAnnouncement.php?id=<?php echo $id;?>"><input type="button" name = "editAnn" value = "Edit" /></a></td>
<td><a href="deleteAnn.php?id=<?php echo $id;?>" onclick="confirm("Delete this announcement?");"><input type="button" name = "deleteAnn" value = "Delete"/></td>
</tr>';
}
$this->numrows= mysql_num_rows($query);
}
only blank space appear next to the buttons