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

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -