query just day month year from now()
===

I am inserting a date into a database with `NOW()` then i query the result. Here is the code.

    	function get_content($id = ''){
	
	if($id != ''):
		$id = mysql_real_escape_string($id);
		$sql = "SELECT * FROM cms_content WHERE id = '$id'";
		
		$return = '<p><a href="index.php">Back to Content</a></p>';
	else:
		$sql = "SELECT * FROM cms_content ORDER BY id DESC";
	endif;
	
		$res = mysql_query($sql) or die(mysql_error());
		
		if(mysql_num_rows($res) != 0):
			while($row = mysql_fetch_assoc($res)) {
				echo '<h1><a href="index.php?id=' . $row['id'] . ' "> ' . $row['title'] . '</a></h1>';
				echo '<p>' . stripslashes($row['body']) . '</p>';
				**echo '<p>' . $row['date_posted'] . '</p>';**
				}
		else:
			echo '<p> You broke it!, this post dosn\'t exsist!';
		endif;
		
		echo $return;
The 

    echo '<p>' . $row['date_posted'] . '</p>'; 

is where i echo the date, When I echo this from the database I get 2012-07-25 19:00:46, because that's what is in the database. My question is how would I echo the day, then echo the month, then the year. Ideally these would all be separate echos so i could style each differently. 

Thanks