I use a couple of functions to which I have to pass the name of the mysqli connection in order to fetch some data.
Is it safe to use a global variable for the mysqli connection to skip passing the connection name to the functions?
arthurav 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.