$result = dbquery("SELECT ... FROM... WHERE postintojo_id=$profile['user_id'] ORDER by download_id DESC"); if (dbrows($result) != 0) { $data = dbarray($result); echo $data['download_title']; }