Guest User

Untitled

a guest
Dec 10th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. <?php
  2. if($_COOKIE['infoGiven']==true){
  3. $con=mysql_connect('localhost','asasdfasd','asdf','asdfasdf');
  4. if($_COOKIE['like']==true){
  5. $sql="INSERT INTO LIKE(state, age, gender, race)
  6. VALUES('".$_POST["state"]."'".$_POST["age"]."'".$_POST["gender"]."'".$_POST["race"].")";
  7. $con->query($sql);
  8. }
  9. if($_COOKIE['like']!=true){
  10. $sql="INSERT INTO DISLIKE(state, age, gender, race)
  11. VALUES('".$_POST["state"]."'".$_POST["age"]."'".$_POST["gender"]."'".$_POST["race"].")";
  12. $con->query($sql);
  13. }
  14. }
  15. ?>
Add Comment
Please, Sign In to add comment