Is a copy of the data stored in a SQL query array made?
Moderator: General Moderators
Is a copy of the data stored in a SQL query array made?
So i was having problems with my script and it worked when i put the query into the FOR loop, i had only put the variable that contained "fetch_assoc()" in the FOR loop. I was wondering when you make a query and store the results in the array, then you echo all the results out does PHP make copies of the data or does it echo the data out then delete it from the arary?
Re: Is a copy of the data stored in a SQL query array made?
echo will just print it
the array still remains intact.. until the end of the php script
the array still remains intact.. until the end of the php script
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.