Guest User

Untitled

a guest
Dec 13th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. <?php
  2.  
  3. $artistname=$_POST('artistname');
  4. $title=$_POST('title');
  5. $year=$_POST('year');
  6. $genre=$_POST('genre');
  7.  
  8. mysqli_connect("192.168.64.2");
  9. mysqli_select_db("vinyl");
  10. $select="INSERT INTO albums(artistname,title,year,genre) values ('$artistname', '$title', '$year', '$genre')";
  11. $sql=mysqli_query($select);
  12.  
  13. print '<script type="text/javascript">';
  14. print 'alert("The data is inserted.")';
  15. print '</script>'
  16. ?>
Add Comment
Please, Sign In to add comment