singular n mod
This commit is contained in:
@@ -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> |
|
<a href="/admin/edit-form/?id=<?php echo $row['id']; ?>">Edit</a> |
|
||||||
<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>
|
||||||
|
|||||||
Reference in New Issue
Block a user