show demand titles as links to show_demand.php
This commit is contained in:
parent
f0aeba0a02
commit
e212f3709f
|
@ -102,10 +102,10 @@ function get_demand_titles ()
|
|||
$result = mysqli_query($con, $sql);
|
||||
while ($row = $result->fetch_assoc()) {
|
||||
echo "<div class='post-box'><p>";
|
||||
echo "<strong>" . $row['demandTitle'] . "</strong>" . "<br>";
|
||||
echo "<a href='show_demand.php'><strong>" . $row['demandTitle'] .
|
||||
"</strong></a>" . "<br>";
|
||||
echo $row['date'] . "<br>";
|
||||
echo "</p>
|
||||
<form class= 'delete-form' method= 'POST'
|
||||
echo "<form class= 'delete-form' method= 'POST'
|
||||
action='".delete_demand()."'>
|
||||
<input type='hidden' name='demandId' value='".$row['demandId']."'>
|
||||
<button type='submit' name= 'deletepost'> Delete</button>
|
||||
|
|
Loading…
Reference in New Issue