Show data based of selected id on modal popup window after click a button php mysql

前端 未结 1 1061
旧巷少年郎
旧巷少年郎 2020-12-12 07:09

On my website, when the button is clicked, it will prompt to a popup window. Im using the modal popup window. My problem is, I cant get the right data that being retrieved b

1条回答
  •  时光说笑
    2020-12-12 07:41

    
    query($data);                          
    while($ser=mysqli_fetch_array($result)) 
    {
    ?>  
    
        
    " data-addr="" data-phone="" data-name="">

    Place this code in footer.php or end of this page.

    
    

    Call your 'somepage.php' (Separate page.Where modal-body is present) through ajax. Place this in your JS file.

    
    

    somepage.php Create somepage.php (If you want to change this page name. Change in too. Both are related.)

    
    
    
    
    
    

    0 讨论(0)
提交回复
热议问题