// In org.php $stmt = $pdo->query("SELECT * FROM organizations WHERE status='approved'"); // Inside the while loop:

// Inside openModal() JS function:

${data.name}

Registration No: ${data.reg_no}

Organization Type: ${data.org_type}