index.php
    
    
    
    Liste 
    
    <script></script>
    <script>
        $(function() {
            $("#cek").click(function() {
                $.ajax({
                    url: 'post.php',
                    type: 'GET',
                    success: function(result) {
                        $('.row').html(result);
                    }
                });
            });
        });
    </script>
    
    
        
        
    
post.php
require("../db.php");
$cek = $db->query("SELECT * FROM users", PDO::FETCH_ASSOC);
if ($cek->rowCount()) {
    foreach ($cek as $row) { ?>
        
            
                 
                
                    
                    
                    
                    
                
            
        
}
?>
 
  
