Am Unable to Get Data from a Function ;

Could you please show the code in the right way? (CODE-TAGS ?)