Skip to content

Commit

Permalink
Update survey.php
Browse files Browse the repository at this point in the history
  • Loading branch information
hizclick authored Jan 25, 2020
1 parent 3d9851e commit 78a67ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions survey.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@
$uname = $_POST['uname'];
$response = $_POST['sentiment'];
$id = $_POST['id'];
echo $id;
$sql = "INSERT INTO sentiment (tweet_id, user_name, sentiment) VALUES ('$id', '$uname', '$response')";
$sql = "INSERT INTO sentiment (tweet_id, username, sentiment) VALUES ('$id', '$uname', '$response')";
if ($conn->query($sql) === TRUE) {
echo "helo";
$result = mysqli_query($conn,"SELECT * FROM tweet order by RAND() limit 1");
Expand Down

0 comments on commit 78a67ab

Please sign in to comment.