• Hi,

    I am learning making plugins. I have made a plugin which created a table. I inserted records in table manually and now I am displaying those records in back-end through plugin. But it is not displaying anything.

    Please have a look at the code and help me in this regard.

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    Prashant

Viewing 1 replies (of 1 total)
  • Thread Starter pras0784

    (@pras0784)

    <?php
    global $wpdb;
    
    $sql = $wpdb->get_results( "SELECT *  FROM wp_images'") ;
    
    //$sql=$wpdb->get_results("select * from $wpdb->images");
    echo '<pre>';
    print_r($sql);
    echo '</pre>';
    ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Get data from table in plugin’ is closed to new replies.