Home Why information is not read well from wordpress database?
Reply: 0

Why information is not read well from wordpress database?

rharmed
1#
rharmed Published in 2018-01-12 22:05:59Z

I am building wordpress site. I am going to read table data from database and display it to page. By the way, some table can be read and some table can't read from database. I don't know the reason. I used following code:

global $wpdb;
    $result = $wpdb->get_results ( "SELECT * FROM $wpdb->huge_it_contact_styles");
    foreach ( $result as $print )   {
            echo '<tr>';
            echo '<td class="text-center">' . $print->id .'</td>';
            echo '<td class="text-center">' . $print->name .'</td>';
            echo '<td class="text-center">' . $print->last_update .'</td>';
            echo '</tr>';
    }   

help me. thank you.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.319943 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO