I created a new table in the database of wordpress (paging system)

gtechnology

New Member
I created a new table in the database of wordpress. Also I create a new template page to view the records in the new table, but I want to create a system paging for this data ..this is my code \[code\]global $wpdb;$querystr = "SELECT * FROM wp_hotel WHERE id_city = ".$_GET['city-id'];$pageposts = $wpdb->get_results($querystr);if ($pageposts): ?><div class="list_hotels"><?php foreach ($pageposts as $post): ?><?php setup_postdata($post); ?><div class="hotel"><?php echo 'Hotel Name:'.$post->name-hotel; ?><br /></div><?php endforeach; ?></div> <?php else : ?><p><?php _e('No Hotel in this city ..'); ?></p><?php endif; ?>\[/code\]
 
Back
Top