<?php 
session_start();
include_once '../../conexao/index.php';
error_reporting(E_ALL);
date_default_timezone_set('Africa/Maputo');
$data_hora = date("Y-m-d H:i:s");

/*Variaveis do Sistema*/
/*********************************************/
$userID = $_SESSION['idUsuario'] ?? null;
$userNOME = $_SESSION['nomeUsuario'] ?? null;
$userCATE = $_SESSION['categoriaUsuario'] ?? null;
/*********************************************/

$sql = "SELECT SUM(totalfiladeespera+iva) as t FROM filadeespera as ps WHERE usuariofiladeespera = '$userID'";
$rs = mysqli_query($db, $sql);
$dados = mysqli_fetch_array($rs);
echo number_format($dados['t'], 2, ',', '.');
?>

