Need your opinion on the edited part of this question i asked on stackoverflow. Been waiting for the whole day but no one's come back to answer that.
Do you think it is useful if you further separtae php and html in your Display pages?
Like In cases where we need to display minimal html like
<h2 align='center'> Appointment Control Panel V 1.0</h2>
<h2 align='center'>Your Next Appointments</h2>
<div id=detail></div>
we make a function to render that and call it in our display rather than outputting html directly.
So maybe that helps to reuse that function in many other places.... And maybe we put many such functions in a common file which then can be included.
Do you think is this an overkill or it helps to reuse and make changes easily in one place or add new functions in case we want to change the looks, size, orientation and placement of something?