Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Klienci
- */
- get_header(); ?>
- <?php
- if (is_user_logged_in()):
- global $wpdb;
- $customers = $wpdb->get_results("SELECT * FROM wp_formmaker_submits;");
- echo "<table>";
- foreach($customers as $customer){
- echo "<span>".$customer->element_value."</span>";
- }
- echo "</table>";
- else:
- echo "Sorry, only registered users can view this information";
- endif;
- ?>
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement