SHARE
TWEET

Problema

Marko97 Jun 1st, 2020 (edited) 669 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $savedcaps = $stmt->fetch(PDO::FETCH_ASSOC)['saved_caps']; // Output: "'1','3','4','5','7','8','9'"
  2. $stmt = $mysql->prepare("SELECT * FROM `gyms` WHERE `cap` IN (:savedcaps)");
  3. $stmt->execute(array(':savedcaps' => $savedcaps));
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top