Lokalizacja
$a7
END;
ini_set("display_errors", 0);
require_once "dbconnect.php";
$polaczenie2 = mysqli_connect($host, $db_user, $db_password);
mysqli_query($polaczenie2, "SET CHARSET utf8");
mysqli_query($polaczenie2, "SET NAMES 'utf8' COLLATE 'utf8_polish_ci'");
mysqli_select_db($polaczenie2, $db_name);
$zapytanietxt2 = "SELECT manager.employeeID, events.id_events, users.name, users.surnname FROM manager, events, users WHERE events.id_events = manager.id_events AND manager.id_events = ".$numevent." AND users.employeeID = manager.employeeID";
$rezultat2 = mysqli_query($polaczenie2, $zapytanietxt2);
$ile2 = mysqli_num_rows($rezultat2);
$_SESSION['quantity_controller'] = $ile2;
echo<<Imie
Nazwisko
END;
for ($i = 1; $i <= $ile2; $i++)
{
$row2 = mysqli_fetch_assoc($rezultat2);
$f1 = $row2['name'];
$f2 = $row2['surnname'];
#$f1 = $_SESSION['name'];
#$f2 = $_SESSION['surnname'];
echo<<$f1$f2
END;
}
echo '';
if(isset($_SESSION['id_log'])){
echo "".$_SESSION['id_log']."";
unset($_SESSION['id_log']);
}
?>