refactored codes. deleted two functions in event_model.php and created just a single function to do 2 tasks. Created a my_event_details.php page to show an events details. still working in it.