Jump to content
Killersites Forums

Flavius890

New Members
  • Content Count

    4
  • Joined

  • Last visited

Posts posted by Flavius890

  1. I can't pass this question even when I copy-paste the answer from Hints. 

    Quote

    <?php

    if (isset($_POST['submit']))
    {
            $id = $_POST['id'];
            $firstname = htmlentities($_POST['firstname'], ENT_QUOTES);
            $lastname = htmlentities($_POST['lastname'], ENT_QUOTES);

            if ($stmt = $mysqli->prepare("UPDATE players SET firstname = ?, lastname = ? WHERE id=?"))
            {
                    $stmt->bind_param("ssi", $firstname, $lastname, $id);
                    $stmt->execute();
                    $stmt->close();
            }

            header("Location: view.php");

    }
    ?>

    Maybe it is a bug?

×
×
  • Create New...