Re: [PHP] mysql_free_result() question

2001-06-25 Thread Richard Lynch
> > Do I mysql_free_result the $Query or the $Result? If it's $Result, would > > this be the same as just going unset($Result)? > > mysql_free_result() frees the ressources that the MySQL server allocated for > the results of your query. This is in the memory space of the MySQL server, > while if

Re: [PHP] mysql_free_result() question

2001-06-23 Thread Jakob Kruse
You should call mysql_free_result($Query) !! It all becomes a little clearer if you change the names of the variables as such: $result = mysql_query("select ..."); $row = mysql_fetch_assoc($result); That is, mysql_query() returns a "result", and mysql_fetch_*() returns a "row" from such a resul

RE: [PHP] mysql_free_result() question

2001-06-23 Thread Kristian Duske
> Do I mysql_free_result the $Query or the $Result? If it's $Result, would > this be the same as just going unset($Result)? mysql_free_result() frees the ressources that the MySQL server allocated for the results of your query. This is in the memory space of the MySQL server, while if you unset($