singular n mod

This commit is contained in:
Kar l5
2024-05-01 22:22:29 +05:30
parent 89b64d7925
commit 6289aa7327
3 changed files with 4 additions and 6 deletions

View File

@@ -60,17 +60,15 @@
<table class="bg-[#fff] text-[#3F4254] rounded-lg font-bold" style="">
<thead>
<tr>
<th class="text-center border-b-2 p-3">Serial</th>
<th class="text-center border-b-2 p-3">ID</th>
<th class="text-center border-b-2 p-3">Form Name</th>
<th class="text-center border-b-2 p-3">Business Verticals</th>
<th class="text-center border-b-2 p-3">Time</th>
<th class="text-center border-b-2 p-3">Action</th>
</tr>
</thead>
<tbody>
<?php
try {
$bv_counter = 1;
$conn = new PDO("mysql:host=$mariaServer;dbname=$mariaDb", $mariaUser, $mariaPass);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$stmt = $conn->prepare("SELECT * FROM addforms ORDER BY created_at DESC");
@@ -79,14 +77,14 @@
foreach($rows as $row){
?>
<tr>
<td class="border-y-2 p-2 text-center"><?php echo $bv_counter; ?></td>
<td class="border-y-2 p-2 text-center"><?php echo $row['id']; ?></td>
<td class="border-y-2 p-2 "><?php echo $row['formname']; ?></td>
<td class="border-y-2 p-2 "><?php echo $row['bverticals']; ?></td>
<td class="border-y-2 p-2 text-center"><?php echo $row['time']; ?></td>
<td class="border-y-2 p-2">
<div class="flex flex-row justify-center">
<a href="/admin/edit-forms/?id=<?php echo $row['id']; ?>">Edit</a> &nbsp; | &nbsp;
<a href="/admin/delete-forms/?id=<?php echo $row['id']; ?>">Delete</a>
<a href="/admin/edit-form/?id=<?php echo $row['id']; ?>">Edit</a> &nbsp; | &nbsp;
<a href="/admin/delete-form/?id=<?php echo $row['id']; ?>">Delete</a>
</div>
</td>
</tr>