Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. <?php
  2.  
  3. include_once "connect.php";
  4.  
  5. $offerTitle = "This is a title";
  6. $offerPoints = 500;
  7. $offerDescription = "Want to play Mario? Download now!";
  8. $offerCompletedCriteria = "Takes 15-20 minutes for points to be rewarded";
  9. $offerActionEarn = "Test_text";
  10. $offerRating = 4;
  11. $offerNumReviews = 4366;
  12. $date = DATETIME: Auto NOW();
  13. $time = NOW();
  14.  
  15. // Insert a row of information into the table "PO_Supersonic"
  16. mysql_query("INSERT INTO PO_Supersonic (offerTitle,
  17. OfferPoints,
  18. offerDescription,
  19. offerCompletedCriteria,
  20. offerActionEarn,
  21. offerRating,
  22. offerNumReviews,
  23. offerDate,
  24. offerTime) VALUES('$offerTitle',
  25. '$offerPoints',
  26. '$offerDescription',
  27. '$offerCompletedCriteria',
  28. '$offerActionEarn',
  29. '$offerRating',
  30. '$offerNumReviews',
  31. '$date',
  32. '$time'
  33. ) ")
  34. or die(mysql_error());
  35.  
  36. echo "Data sent";
  37. echo "$date $time";
  38. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement