Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $query = "SELECT * from complaintbl where username =
- '{$_SESSION['username']}'";
- $result = mysqli_query($con,$query);
- if ($result->num_rows > 0)
- {
- while($row = $result->fetch_assoc())
- {
- echo "<tr>";
- echo "<td>".$row['complain_title']."</td>";
- echo "<td>".$row['complain_text']."</td>";
- echo "<td><input type="text" id="Status" class="form-control editField" style="width:50px;" name="Status" value="".$row['Status']."" readonly/></td>";
- 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>';
- }
- }
- else
- {
- echo "</table>";
- echo '<p class="a1"><b>You have no item. Please insert item</p>';
- }
- ?>
Add Comment
Please, Sign In to add comment