• Resolved johnwinlwin

    (@johnwinlwin)


    $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 🙂

Viewing 2 replies - 16 through 17 (of 17 total)
Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘How To Put Database Results in HTML TABLE’ is closed to new replies.