PHP UPDATE ORDER BY DATE ADDED not working :      function post_data($update_data){
	$session_user_id = $_SESSION ['user_id'];
	$user_data = user_data($session_user_id,  'username', 'email');
	$email= $user_data['email'];
	$update= array();
	array_walk($update_data, 'array_sanitize');
	foreach ($update_data as $field => $data) {
		$update[] = '`'. $field . '` =\''.$data .'\'';
	}
	
	mysql_query("UPDATE `user_post` SET " . implode(', ', $update) . " WHERE `email` = '$email' ORDER BY date_added DESC  ");


}

Hi, the function above update a mysql table, please how do i make sure that when the code is executed, it is displayed in the order of last inserted.

This is the code that fetch the values from the table;

    $query = mysql_query("SELECT * FROM  user_post WHERE `username` = '$get_user' ORDER BY date_added DESC LIMIT 3 ");
                      $newsCount = @mysql_num_rows($query); // count the output amount

                      if ($newsCount > 0) {
                      while($row = mysql_fetch_assoc($query)){
                        $id = $row["id"];
                        
                        $username = $row["username"];
                        $body =     $row["body"];
                        $profile_pix = $row["profile_pix"];
                        $date_added = strftime("%b %d, %Y", strtotime($row["date_added"]));


Thanks.