Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // above of here, i query the db for the event, i make the $free_spots = $free_spots - 1 after user clicks attending, fetching and defining $max_spot, $free_spots exc.
- $met_with = $met_with + $max_spot - 1;
- try{
- $update_member_query = "UPDATE `members` SET `met_with`=:met_with, `attended` = `attended` +1 WHERE `id`=:userid";
- $update_member_query_do = $db->prepare($update_member_query);
- $update_member_query_do->bindParam(':userid', $userid, PDO::PARAM_INT);
- $update_member_query_do->bindParam(':met_with', $met_with, PDO::PARAM_INT);
- $update_member_query_do->execute() or die(print_r($update_member_query_do->errorInfo(), true));
- }
- catch(PDOException $e) {
- $log->logError($e." - ".basename(__FILE__));
- }
Add Comment
Please, Sign In to add comment