-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlistar.php
More file actions
27 lines (19 loc) · 852 Bytes
/
Copy pathlistar.php
File metadata and controls
27 lines (19 loc) · 852 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
<?php
include ("conexion.php");
if (isset($_GET["tech"]) and $_GET["tech"] == "2g"){
$query = "SELECT tforecast2g.*, taccion2grf.* ,taccion2gtrs.* FROM tforecast2g JOIN taccion2grf ON tforecast2g.Id = taccion2grf.IdReg JOIN taccion2gtrs ON tforecast2g.Id = taccion2gtrs.IdReg";
$resultado = mysqli_query($conexion, $query);
if( !$resultado ){
die("no hay un carajo");
}else{
while ($data = mysqli_fetch_assoc($resultado)){
$arreglo['data'][] = array_map("utf8_encode",$data);
}
//print_r($arreglo);
echo json_encode($arreglo, 65536);
}
mysqli_free_result($resultado);
mysqli_close($conexion);
}else{
die("eshor");
}