random1 Posted October 30, 2008 Share Posted October 30, 2008 What's the best place to put SQL code. I have some SQL statements: e.g. SELECT `user_username` FROM `user`; Is it best practice to place these straight forward requests for data within PHP or as "views", "stored procedures" etc in mySQL? Is it best practice to create "views" for the selection of data? Quote Link to comment https://forums.phpfreaks.com/topic/130804-solved-sql-placement-of-code/ Share on other sites More sharing options...
fenway Posted October 31, 2008 Share Posted October 31, 2008 No need for view or SPs unless it's really complex. Quote Link to comment https://forums.phpfreaks.com/topic/130804-solved-sql-placement-of-code/#findComment-679432 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.