Marko97 Jun 1st, 2020 (edited) 669 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- $savedcaps = $stmt->fetch(PDO::FETCH_ASSOC)['saved_caps']; // Output: "'1','3','4','5','7','8','9'"
- $stmt = $mysql->prepare("SELECT * FROM `gyms` WHERE `cap` IN (:savedcaps)");
- $stmt->execute(array(':savedcaps' => $savedcaps));
RAW Paste Data