You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$con = mysqli_connect('localhost', 'root', '') or die(mysqli_connect_errno());
mysqli_select_db($con, 'web');
$sql = "SELECT SUBSTRING_INDEX(REQ_contentType, '/', 1) AS ISTOANTIKEIMENA, ROUND(AVG(REQ_age), 2) AS MESIILIKIA FROM requestdata WHERE REQ_contentType IS NOT NULL AND REQ_age IS NOT NULL GROUP BY ISTOANTIKEIMENA";
$apotelesmata = mysqli_query($con, $sql);
$json_array = array();
while ($row = mysqli_fetch_assoc($apotelesmata)) {