Good practices with great queries? [closed]

-4

Are there good practices when it comes to SQL queries within php? Or is there an alternative not to "dirty" the code with a giant query in the middle? Edit: What I was looking for was just views, but I did not know the name to look for, the answer chosen heals all my doubts.

    
asked by anonymous 08.02.2017 / 22:02

1 answer

1

Try creating a view in the database and calling PHP code. This way you avoid having to call a long query and leave the whole logic in the view. From what I researched here it is possible.

    
08.02.2017 / 23:25