We add a function to replace all echo in php. We delete the call to stored procedure and we do the SQL selection in constant.