Close MySQL Result

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I think I am a dork.

How do I close a MySQL result set to free memory?

Given something like this:

$gsql = "Select * from resources where queryName = 'Production';";

$myresult = mysql_query($gsql) or die('Cannot execute Query: ' . mysql_error());

$Row = mysql_fetch_assoc($myresult);
	
if ($Row == true) { $_SESSION['PRODUCTION'] = $Row['queryValue']; }
else { $_SESSION['PRODUCTION'] = "TRUE"; }

How do I free up $myresult and $Row?

-ML

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux