Guest User

Untitled

a guest
Dec 13th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. <?php
  2. $query = "SELECT * from complaintbl where username =
  3. '{$_SESSION['username']}'";
  4. $result = mysqli_query($con,$query);
  5. if ($result->num_rows > 0)
  6. {
  7. while($row = $result->fetch_assoc())
  8. {
  9. echo "<tr>";
  10. echo "<td>".$row['complain_title']."</td>";
  11. echo "<td>".$row['complain_text']."</td>";
  12. echo "<td><input type="text" id="Status" class="form-control editField" style="width:50px;" name="Status" value="".$row['Status']."" readonly/></td>";
  13. echo '<td><a href="studenteditcomplain.php?cid='.$row['cid'].'"><button title="edit" id="edit_button" type="button" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-pencil white"></span></button></a><a href="deletecomplain.php?cid=' . $row["cid"].';><button title="delete" type="button" class="btn btn-default btn-sr" data-confirm="Are you sure to delete this item?"><span class="glyphicon glyphicon-trash white"></span></button></a></td>';
  14. }
  15. }
  16. else
  17. {
  18. echo "</table>";
  19. echo '<p class="a1"><b>You have no item. Please insert item</p>';
  20. }
  21. ?>
Add Comment
Please, Sign In to add comment