File manager - Edit - /home/autoph/public_html/voc/home/CL_DELETE_SELECTED_ADMIN.php
Back
<?php include 'core/init.php'; //$connect_error = 'Sorry, we\'re experiencing connection problem. Please try again later... Thank you!'; //mysql_connect('localhost','root','aee1024') or die ($connect_error); //mysql_select_db('db_vts') or die($connect_error); //error_reporting(1); $compID= $user_data['company']; $myDate = date_create() ->format("Y-m-d"); if(isset($_POST['done'])){ $selectedAdminID = mysql_escape_string($_POST['selectedAdminID']); $addCompID = mysql_escape_string($_POST['addCompID']); mysql_query("UPDATE `vts_users` SET `CL_ADM` = 0 WHERE `u_id`='$selectedAdminID'"); echo "<table>"; echo "<thead>"; echo "<th style='width:50px'>REC.ID.</th>"; echo "<th style='width:200px'>LAST NAME</th>"; echo "<th style='width:200px'>FIRST NAME</th>"; echo "<th style='width:200px'>POSITION</th>"; echo "</thead>"; $getApproverList = mysql_query("SELECT `u_id`, `u_fname`, `u_lname`, `u_position` FROM `vts_users` WHERE `CL_ADM`= 1 AND `company`='$addCompID' ORDER BY `u_lname` ASC"); while($row=mysql_fetch_array($getApproverList)){ $count = $count + 1; ?><tr onclick="javascript:showAdminAccess(this);"><?php echo "<td>".$row['u_id']."</td>"; echo "<td>".strtoupper($row['u_lname'])."</td>"; echo "<td>".strtoupper($row['u_fname'])."</td>"; echo "<td>".strtoupper($row['u_position'])."</td>"; echo "</tr>"; } echo "</table>"; echo '<script>alert("Record '.$selectedApprovingID.' has been deleted...")</script>'; exit(); } ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings