Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $link=mysql_connect ('localhost', 'root', '');
- mysql_select_db ('books_collection');
- $id = $_POST['id'];
- $title = $_POST['title'];
- $author= $_POST['author'];
- $genre= $_POST['genre'];
- $result = mysql_query("INSERT INTO book (id, title, author, genre) VALUES('$id', '$title', '$author', '$genre')");
- var_dump($result);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement