Pastetool #449

URL: , Paste another

<?php
	$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;
	}

?>

Download code

This php code was pasted on March 1, 2010




Protected with advance Anti-SPAM techniques :)
Coded and designed by Fedmich
Follow us on Twitter