Server IP : 162.240.98.243 / Your IP : 18.117.99.152 Web Server : Apache System : Linux server.bti.yaw.mybluehostin.me 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : btiyawmy ( 1003) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/btiyawmy/public_html/login.easenup.in/ |
Upload File : |
<?php session_start(); include("header.php"); include("../dbconnection.php"); include("menusuper.php"); if(isset($_GET[delid])) { $sql ="DELETE FROM site_users WHERE userno='$_GET[delid]'"; $qsql=mysqli_query($con,$sql); if(mysqli_affected_rows($con) == 1) { echo "<script>alert('Deleted successfully..');</script>"; } } ?> <style> th { padding-top: 12px; padding-bottom: 12px; text-align: left; background-color: #1e73be; color: white; } table { border-collapse: collapse; border-spacing: 0; width: 100%; border: 1px solid #ddd; } th, td { text-align: center; padding: 16px; } tr:nth-child(even) { background-color: #f2f2f2; } </style> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <section class="container"> <h3><input type="search" class="light-table-filter" data-table="order-table" placeholder="Search Vendor" /></h3> <table class="order-table"> <thead> <tr> <th width="20%"><div align="center">Name</div></th> <th width="20%"><div align="center">Usertype</div></th> <th width="20%"><div align="center">Mobile Number</div></th> <th width="20%"><div align="center">Password</div></th> <th width="20%"><div align="center">Action</div></th> </tr> </thead> <tbody> <?php $sql ="SELECT * FROM site_users where usertype='Vendor'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo "<tr> <td> $rs[uname] </td> <td> $rs[usertype] </td> <td> $rs[numbers]</td> <td>$rs[password]</td> "; if(isset($_SESSION[uname])) { echo "<td><a href='vendorfetch.php?vender_id=$rs[userno]'>View</a> | <a href='Hospitalpending.php?delid=$rs[userno]'>Delete</a></td>"; } echo "</td></tr>"; } ?> </tbody> </table> </section> <p> </p> </div> </div> </div> <div class="clear"></div> </div> </div> <?php include("footers.php"); ?>