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