I come from c++/SQL server background and new to web development. I have couple of newbie questions.
a. To me it makes sense to use stored procedures via mysqli rather than calling direct queries in my PHP code. Advantage is I can go lots of internal calculations in stored procedure and return desired results. Also, I can modify stored procedure later without changing PHP code if I want to change it. But it doesn't seem to be used that often in web development world. I don't understand why? Does it affect caching or something. Just puzzled.