Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64
Your IP : 3.145.115.45
<?php
include_once('../../../includes/mysql_server_setup.php');
if (! $_GET['info_lname'] || ! $_GET['info_fname'] || ! $_GET['info_datenais_year'] || ! $_GET['info_datenais_month'] || ! $_GET['info_datenais_day']) {
exit;
}
$info_datenais = $_GET['info_datenais_year'].'-'.$_GET['info_datenais_month'].'-'.$_GET['info_datenais_day'];
$sql = '
SELECT r.id, r.info_basicrole, r.info_fname, r.info_lname, r.info_mname, r.info_datenais
FROM register AS r, secur_usagersgroupes AS sug1, secur_usagersgroupes AS sug2
WHERE (r.info_fname = "'.$_GET['info_fname'].'" AND r.info_lname = "'.$_GET['info_lname'].'" AND r.info_datenais = "'.$info_datenais.'")
AND r.sys_status IN (1, 0)
AND (r.sys_scope = 0 OR r.sys_scope = 1 OR (r.sys_scope = 2 AND sug1.id_usager = r.sys_owner AND sug1.id_groupe = sug2.id_groupe AND sug2.id_usager = "") OR (r.sys_scope = 3 AND r.sys_owner = ""))
GROUP BY id ORDER BY info_lname, info_fname, info_datenais
LIMIT 1
';
$result = mysql_query($sql, $mysql_link);
if (mysql_num_rows($result) == 0) {
exit;
}
$row = mysql_fetch_assoc($result);
if ($row['id'] != '' && $row['info_basicrole'] != '') {
echo $row['id'].'|'.$row['info_basicrole'];
}
?>
|