Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (isset($_POST['Title'], $_POST['Author'], $_POST['Date'], $_POST['Type']))
- {
- $title = mysqli_real_escape_string($link, $_POST['Title']);
- $author = mysqli_real_escape_string($link, $_POST['Author']);
- $date = mysqli_real_escape_string($link, $_POST['Date']);
- $type = mysqli_real_escape_string($link, $_POST['Type']);
- $sql = 'INSERT INTO library SET
- Title="' . $title . '";
- Author="' . $author . '";
- PublishDate="' . $date . '";
- Type="' . $type . '";
- if (!mysqli_query($link, $sql))
- {
- $error = 'Error adding submitted item: ' . mysqli_error($link);
- include 'error.html.php';
- exit();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement