php - separate queries of SQL functions? -


i using combination of php , mysql. case using 2 queries (one 'select' , 'insert') activity, 3 queries. done different users.

i using mysql_query function separately execute queries. or better use sql function executes queries. want know better regarding performance.

in opinion better practice create function performs single operation well. makes functions easier test , allows them utilized in other operations in future. in case create stored procedure execute routine.


Comments

Popular posts from this blog

haskell - Using filter on an item in a list? -

c# - When does PreApplicationStartMethod actually get triggered to run? -

tomcat6 - Exception when stopping container for a with Spring + Quartz + Tomcat web application -