Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if($_COOKIE['infoGiven']==true){
- $con=mysql_connect('localhost','asasdfasd','asdf','asdfasdf');
- if($_COOKIE['like']==true){
- $sql="INSERT INTO LIKE(state, age, gender, race)
- VALUES('".$_POST["state"]."'".$_POST["age"]."'".$_POST["gender"]."'".$_POST["race"].")";
- $con->query($sql);
- }
- if($_COOKIE['like']!=true){
- $sql="INSERT INTO DISLIKE(state, age, gender, race)
- VALUES('".$_POST["state"]."'".$_POST["age"]."'".$_POST["gender"]."'".$_POST["race"].")";
- $con->query($sql);
- }
- }
- ?>
Add Comment
Please, Sign In to add comment