Global Variables vs mysql queries
#1

Hello everyone!
I want to know is there a specific advantage to using global variables instead of executing a mysql query everytime I need data from my database?
I know mysql can handle all those requests and I hate having to update my global variable and also update the database, it's like I am doing a task twice. I really want to know peoples arguments before I decide to switch totally to one or the other.
Thanks in advance.
Reply
#2

When data need to be accessed very frequently, use global variables.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)