Close MySQL Result

From: Date: Wed, 20 Jan 2010 21:20:40 +0000
Subject: Close MySQL Result
Groups: php.general 
Request: Send a blank email to php-general+get-301279@lists.php.net to get a copy of this message
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

« previous php.general (#301279) next »