El problema es que el boton que abre el pop up es un ID, y yo quiero tener varios botones que puedan abrir el mismo pop up... he cambiado esta parte del codigo:
Código PHP:
// Get the button that opens the modal
var btn = document.getElementById("myBtn");
Código PHP:
// Get the button that opens the modal
var btn = document.getElementsByClassName("myBtn");

Gracias