Example of code where I can make a table's properties show on page.
if (current_user_can('administrator'))
{
global $wpdb;
$result = $wpdb->get_results ( " SELECT *
FROM $wpdb->posts
WHERE post_type = 'product'
" );
foreach ( $result as $row )
{
echo $row->ID.'<br/>';
echo $row->post_title.'<br/>';
}
Then I put data into the table and I get nothing, not ever error messages.
Does anyone have an idea why this happens ? And how can I make any table's results appear in my page? Thank you