daily pastebin goal
21%
SHARE
TWEET

Untitled

a guest Dec 13th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top