Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.135.186.233
<?php
include("/var/www/config.php");
$servername = SERVERNAME;
$username = USERNAME;
$password = PASSWORD;
$conn = new mysqli($servername,$username,$password);
if(!$conn)
{
die("Connection failed: " . mysqli_connect_error());
}
$db = $_POST['univcode'];
$Query = "select fboardcode, fboardname,
funivcode, funivname, date_format(now(), '%d/%m/%Y %r') as fdate
FROM {$db}.masboard, {$db}.control c order by fboardcode";
$result = mysqli_query($conn, $Query);
$row = mysqli_fetch_assoc($result);
$Query2 = "select distinct fdeggrp from {$db}.masqp where ifnull(fdeggrp,'') <> '' and fdeggrp <> ''";
$result2 = mysqli_query($conn, $Query2);
if($result2 -> num_rows > 0){
$i=0;
while ($row3=mysqli_fetch_assoc($result2)){
$arr[$i]['fdeggrp']=$row3['fdeggrp'];
$i++;
}
}
echo json_encode($arr);
?>
|