$wpdb->get-results not working
-
Hi, any idea on what′s wrong with this piece of code:
<?php global $wpdb; $active_rows = $wpdb->get_results( " SELECT * FROM $wpdb->plugin_table " ); foreach ($active_rows as $active_row){ echo $active_row->the_title; } ?>
“plugin_table” is the table created at plugin install.
“the_title” is a field in that table.I′m trying to collect all the titles from that table, for what it′s worth.
Anyway, what am I doing wrong?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘$wpdb->get-results not working’ is closed to new replies.