Advertisement
tcelestino

WordPress Ajax

Dec 21st, 2011
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.61 KB | None | 0 0
  1.  <?php
  2.  
  3. global $wpdb;
  4.  
  5.  if(isset($_GET['inicio'])) {
  6.  
  7.   $inicio = $_GET['inicio'];
  8.  
  9.   require('../../../../wp-blog-header.php');
  10.  
  11.  
  12.  
  13. }
  14.     $dados = $wpdb->get_results('SELECT * from wp_maw_newsletter ORDER BY id ASC LIMIT '.$inicio.',10');
  15.  
  16.    
  17.         foreach($dados as $dadosResultado) {
  18.            
  19.             $id = $dadosResultado->id;
  20.             $nome = $dadosResultado->nome;
  21.             $email = $dadosResultado->email;
  22.            
  23.             ?>
  24.       <tr>
  25.         <td><?php echo $id; ?></td>
  26.         <td><?php echo $nome; ?></td>
  27.         <td><?php echo $email; ?></td>
  28.         <td><a href="#">Remover</a></td>
  29.       </tr>
  30.     <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement