-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequest.php
More file actions
44 lines (43 loc) · 939 Bytes
/
request.php
File metadata and controls
44 lines (43 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
$reque1 = mysql_query(
"SELECT
`clients`.`id` AS `client_id`,
`clients`.`name` AS `client_name`
FROM `clients`
WHERE `clients`.`id` = ".$c."
");
$req1 = mysql_fetch_array($reque1);
if ($s != NULL) {
$reque2 = mysql_query(
"SELECT
`simulators`.`id` AS `simulator_id`,
`simulators`.`name` AS `simulator_name`
FROM `simulators`
WHERE `simulators`.`id` = ".$s."
");
$req2 = mysql_fetch_array($reque2);
}
if ($l != NULL) {
$reque3 = mysql_query(
"SELECT
`libs`.`id` AS `lib_id`,
`libs`.`name` AS `lib_name`,
`libs`.`code` AS `lib_code`
FROM `libs`
WHERE `libs`.`id` = ".$l."
");
$req3 = mysql_fetch_array($reque3);
}
if ($e != NULL) {
$reque4 = mysql_query(
"SELECT
`elements`.`id` AS `element_id`,
`elements`.`name` AS `element_name`,
`elements`.`code` AS `element_code`,
`elements`.`description` AS `element_description`
FROM `elements`
WHERE `elements`.`id` = ".$e."
");
$req4 = mysql_fetch_array($reque4);
}
?>