0

$sql is where the error is found but i can't find a solution can any body help me fix this problem

//insert data to database
$sql = "INSERT INTO user(user_country, travel_members) VALUES(:country, :members) WHERE user_id ='$_SESSION['user_session']'";

    $query = $DB_con->prepare($sql);

    $query->bindparam(':country', $country);
    $query->bindparam(':members', $members);
    $query->execute();
lue
  • 1
  • 1

0 Answers0