Posted by Sjoerd on 02/27/07 18:34
Mitesh wrote:
> $res = mysql_query($req);
> .............
> $res = mysql_query($req);
> In other words since PHP uses garbage collection re-using the same
> variable can cause problems. Is this true?
Using the same variable twice is fine. Don't bother too much about the
garbage collector. Since it removes variables when you don't use them
anymore, it never gets in the way.
You probably have another problem which causes things to fail sometimes.
Sjoerd
[Back to original message]
|