Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- global $wpdb;
- if(isset($_GET['inicio'])) {
- $inicio = $_GET['inicio'];
- require('../../../../wp-blog-header.php');
- }
- $dados = $wpdb->get_results('SELECT * from wp_maw_newsletter ORDER BY id ASC LIMIT '.$inicio.',10');
- foreach($dados as $dadosResultado) {
- $id = $dadosResultado->id;
- $nome = $dadosResultado->nome;
- $email = $dadosResultado->email;
- ?>
- <tr>
- <td><?php echo $id; ?></td>
- <td><?php echo $nome; ?></td>
- <td><?php echo $email; ?></td>
- <td><a href="#">Remover</a></td>
- </tr>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement