Guest User

Untitled

a guest
Mar 6th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. <?php
  2. $servername = "jonasgamertv.com.mysql";
  3. $username = "jonasgamertv_com_forum";
  4. $password = "**";
  5. $dbname = "jonasgamertv_com_forum";
  6.  
  7. // Create connection
  8. $conn = new mysqli($servername, $username, $password, $dbname);
  9. // Check connection
  10. if ($conn->connect_error) {
  11. die("Connection failed: " . $conn->connect_error);
  12. }
  13. $Cre = $_GET['Creator'];
  14. $Type = $_GET['Type'];
  15. $Decal = $_GET['Decal'];
  16. $Dest = $_GET['Destination'];
  17. $RV = $_GET['RecurringViews'];
  18.  
  19.  
  20.  
  21. $sql = "INSERT INTO ra_Ads (Creator, Type, Decal,Destination,RecurringViews,Clicks)
  22. VALUES ('$Cre','$Type' , '$Decal','$Dest' ,'$RV')";
  23.  
  24. if ($conn->query($sql) === TRUE) {
  25. echo "sucess";
  26. } else {
  27. echo "Error: " . $sql . "<br>" . $conn->error;
  28. }
  29.  
  30. $conn->close();
  31. ?>
Add Comment
Please, Sign In to add comment