Posts: 481
Location: Gold Coast - Brisbane QLD, Australia
|
Find out under what conditions the query '$query_id' runs. When mysql_free_result resurns this error, it usually means there is no result assigned to the var.
This is generally the case when a query only runs when certain conditions are met, such as a successful logon. You need to ensure mysql_free_result($query_id) only runs under the same condition.
At any rate, the resource will be freed up when the script finishes. Unless this is a memory hungry script, mysql_free_result really isn't required.
|