a demo messaging app in php using mySql and Smarty