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

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -