RE: [PHP-DB] Re-using query result identifiers?
| From: | Jordan | Date: | Tue, 18 Nov 2003 16:50:53 +0000 |
| Subject: | RE: [PHP-DB] Re-using query result identifiers? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-31613@lists.php.net to get a copy of this message | ||
Does anyone know anything about this?
-----Original Message-----
From: Jordan [mailto:Jordan@TumYeto.net]
Sent: Thursday, November 13, 2003 4:58 PM
To: 'php-db@lists.php.net'
Subject: [PHP-DB] Re-using query result identifiers?
Does re-using a link identifier name free the resources used by the previous
one?
Consider this code:
$result = mysql_result($query1);
$result = mysql_result($query2);
Is the memory used by $query1's results freed/overwritten by $query2's
results?
Even further, does calling mysql_free_results as below accomplish anything,
or is it a waste?
$result = mysql_result($query1);
mysql_free_results($result);
$result = mysql_result($query2);
Love,
Tom Yeeto Web Lackey
http://www.tumyeto.com/
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php