Server IP : 162.240.98.243 / Your IP : 13.59.32.1 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("dbconnection.php"); include("menu.php"); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content="Dashboard"> <meta name="keyword" content="Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina"> <title>Doctors Access </title> </head> <body> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h3><i class="fa fa-angle-right"></i> Doctors Access </h3> <style> form{ margin: 20px 0; } form input, button{ padding: 5px; } table{ width: 100%; margin-bottom: 20px; border-collapse: collapse; } table, th, td{ border: 1px solid #cdcdcd; } table th, table td{ padding: 10px; text-align: left; } <style> table{ border: solid 1px gray; width: 100%; } </style> </head> <div class="wrapper col4"> <div id="container"> <table class="js-serial" border="1"> <tbody> <th>Doctors name </th> <th>User id </th> <th>Password</th> <?php $sql ="SELECT * FROM pharama WHERE adminid='$_GET[adminid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tr> <td>$rs[name]</td> <td>$rs[user_id]</td> <td>$rs[password]</td> </tr>"; echo "</td></tr>"; } ?> </tbody> </table> <p align="right"> <button> Add New </button> </p> <script> function addRowCount(tableAttr) { $(tableAttr).each(function(){ $('th:first-child, thead td:first-child', this).each(function(){ var tag = $(this).prop('tagName'); $(this).before('<'+tag+'>SR.No</'+tag+'>'); }); $('td:first-child', this).each(function(i){ $(this).before('<td>'+(i+1)+'</td>'); }); }); } // Call the function with table attr on which you want automatic serial number addRowCount('.js-serial'); </script> </body> </html>