File manager - Edit - /home/autoph/public_html/connect/home/CL_SEARCH_EMPLOYEE.php
Back
<?php ob_start(); include 'core/init.php'; error_reporting(0); //$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'])){ $SearchEmployees = mysql_escape_string($_POST['SearchEmployees']); $lookUp = mysql_query("SELECT `u_id`, `u_fname`, `u_lname`, `u_position` FROM `vts_users` WHERE `u_lname` LIKE '%$SearchEmployees%' || `u_fname` LIKE '%$SearchEmployees%'"); 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>"; while($row=mysql_fetch_array($lookUp)){ $count = $count + 1; ?><tr onclick="javascript:showSelectedRearch(this);"><?php echo "<td style='cursor:pointer'>".$row['u_id']."</td>"; echo "<td style='cursor:pointer'>".strtoupper($row['u_lname'])."</td>"; echo "<td style='cursor:pointer'>".strtoupper($row['u_fname'])."</td>"; echo "<td style='cursor:pointer'>".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