How to run Javascript popup modal in a loop?

Sorted using non java script pop up: Added <?php $postid = get_the_ID(); echo $postid; ?> to html so that it would act as a unique id for each loop post. HTML: <a href=”#openModal<?php $postid = get_the_ID(); echo $postid; ?>”>Open Modal</a> <div id=”openModal<?php $postid = get_the_ID(); echo $postid; ?>” class=”modalDialog”> <div> <a href=”#close” title=”Close” class=”close”>X</a> <h2>Popup</h2> … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)