Display pagination in reservation Plugin and and Print table as pdf

Question

I Want to display pagination in one of my page of plugin ,created by me..

I am grateful if someone can help i want pagination in back end(in admin) not in front end, and print reservation as pdf. this my function how can i add pagination and print as pdf?

function friday_reservations(){ 

Reservations

ID
Gebet
Genre
Name
Last Name
E-mail
Phone
Number
Delete

prefix . ‘fridyreservation’;
$reservations = $wpdb->get_results(“SELECT * FROM $table”, ARRAY_A);

foreach($reservations as $reservation): ?>

            <tr>
                <td><?php echo $reservation['id']; ?></td>
                <td><?php echo $reservation['predigt']; ?></td>
                <td><?php echo $reservation['genre']; ?></td>
                <td><?php echo $reservation['fname']; ?></td>
                <td><?php echo $reservation['lname']; ?></td>
                <td><?php echo $reservation['email']; ?></td>
                <td><?php echo $reservation['phone']; ?></td>
                <td><?php echo $reservation['pnumber']; ?></td>
                <td>
                    <a href="#" class="remove_reservation" data-reservation="<?php echo $reservation['id']; ?>">Remove</a>
                </td>
            
            </tr>


        <?php endforeach;
    ?>
    </tbody>
</table>
0
Ayari 1 month 0 Answers 7 views 0

Leave an answer