Welcome Guest, Not a member yet? Register   Sign In
CI4: stored procedures/functions for Select / Drop down list
#1
Question 
(This post was last modified: 04-13-2022, 12:39 AM by Ahmed Haroon.)

want recommendation for Select List ( some says Dropdown List, Select List, List of  Values, Combo box etc. ) that which is in best practices... calling stored procedures/functions from db or write a function in .php file? please guide, which is the better way to write code once (reusable code) and call it from anywhere within app. or any misconception here as of my lack of knowledge?
regards
Reply
#2

@Ahmed Haroon,

They both work (don't forget about database views either). Pick one and go with it. I personally prefer either straight query calls or database view calls. I don't think there is a best practice as much as a preference of how you wish to obtain the data.
Reply
#3

(04-13-2022, 06:13 AM)php_rocs Wrote: @Ahmed Haroon,

They both work (don't forget about database views either). Pick one and go with it.  I personally prefer either straight query calls or database view calls.  I don't think there is a best practice as much as a preference of how you wish to obtain the data.
thanks @php_rocs for your input and sharing your experience. 
regards
Reply




Theme © iAndrew 2016 - Forum software by © MyBB