File manager - Edit - /home/autoph/public_html/connect/home/PRF_SaveNewItemCategory.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); 193 * 1067 * 215 $prfDate = date_create() ->format("Y-m-d"); $prfTime = date('H:i:s'); $myDate = date_create() ->format("Y-m-d"); $activeID=$user_data['u_id']; if(isset($_POST['done'])){ $expenseID = mysql_escape_string($_POST['expenseID']); $NewItemCategory = mysql_escape_string($_POST['NewItemCategory']); mysql_query("INSERT INTO prf_expenseitems(category_id,description,status) VALUES('{$expenseID}','{$NewItemCategory}','1')"); $getMatrixData = mysql_query("SELECT * FROM `prf_expenseitems` WHERE `status`=1 AND `category_id`='$expenseID' ORDER BY `description` ASC"); echo "<table id='loadExpenseType' style='width:100%'>"; while($row=mysql_fetch_array($getMatrixData)){ ?><tr onclick="javascript:getMatrixInfo(this);"><?php echo "<td style='width:10%;text-align:center;font-family:Yu Gothic Light;font-size:12px'>".strtoupper($row['id'])."</td>"; echo "<td colspan='2' style='width:90%;text-align:left;font-family:Yu Gothic Light;font-size:12px'>".strtoupper($row['description'])."</td>"; echo "</tr>"; } echo "</table>"; } exit(); ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings