How To Put Database Results in HTML TABLE
-
$fivesdrafts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'draft' AND post_author = 5"); foreach ($fivesdrafts as $fivesdraft) { echo $fivesdraft->post_title; }
I know little about coding. What I am trying to do is to put post_title in a HTML table format. So the table has only one columns and post titles will be in each row.
Thanks in advance for your guys help 🙂
- The topic ‘How To Put Database Results in HTML TABLE’ is closed to new replies.