using database - Display the chosen message

had aproblems"Call to a member function load() on a non-object in"

and not solve
schedule2014.7.21