Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $conn = new mysqli("localhost","fcac","wondunna","fcac_Student") or die(mysqli_error($conn));
- if (isset($_POST["submit"])) {
- $Surname = $_POST["Surname"];
- $Given_Name = $_POST ["Given_Name"];
- $query = mysqli_query($conn, "INSERT INTO Student (Surname, Given_Name) VALUES ('$Surname', '$Given_Name')") or die(mysqli_error($conn));
- if ($query) {
- echo "Data entered successfully <BR>";
- }
- }
- mysqli_close($conn)
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement