to test this try returning $result from the function e.g. function test() { $result = mysql_query("SELECT * FROM bigbigtable"); return $result; } echo(mysql_numrows(test()))
remember $result holds a number that is a pointer to the result set resource, it isn't the actual result data set, if the memory hasn't been freed you should still be able to get to it ... I think Tim www.chessish.com > -----Original Message----- > From: lallous [mailto:[EMAIL PROTECTED]] > Sent: 26 September 2002 11:20 > To: [EMAIL PROTECTED] > Subject: local resource variables > > > Hello, > > > I was wondering if i do: > > function test() > { > $result = mysql_query("SELECT * FROM bigbigtable"); > } > > after calling test() will $result be freed as if calling > mysql_free_result()? > > > Elias > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php