php - what is the proper way of passing query data to view -


what best way of passing queried data view via function ?? tried passed mysql_query() result data , process in view , create dynamic array in function (mysql_fetch_array()) , pass data...i want know best way of doing process???

if "proper" mean mvc way of doing it, you'd process data in controller , have controller render view final output.

if aren't using mvc framework, i'd highly recommend codeigniter.


Comments

Popular posts from this blog

c# - How can I have the VS Debugger break in the correct location for exceptions thrown in Async methods in a Console App? -

php - Issues outputting data after prepared statement with loops -

javascript - How to pass a property by reference -