I have this doubt: I have a php that retrieves results from a mysql table. In terms of optimization, would it be wiser to retrieve the data at the beginning of the php script so that I can use it below? Or is it exactly the same as retrieving the data when the information is going to be printed?
Share
If you don’t need to process the results, just display them, there no advantage to the one or the other.