%PDF- %PDF-
Direktori : /mnt/tnb2/los/ |
Current File : //mnt/tnb2/los/smazuzivatele.php |
<?php session_start(); $uzivatel=$_SESSION["uzivatel"]; include('sql.php'); $mysqli = new mysqli(pc,user,pass,data); if ($mysqli->connect_errno) {printf("Spojenà selhalo: %s\n", $mysqli->connect_error); exit();} $dotaz="DELETE FROM registrace where uzivatel='".$uzivatel."'"; $mysqli->query($dotaz); $mysqli->close(); unset($_SESSION["uzivatel"]); unset($_SESSION["jmeno"]); unset($_SESSION["prijmeni"]); echo '<script>window.location.href="index.php"</script>'; ?>