I am using a search that is using a lot of memory. I use mysql_pconnect(). I want to use... or I believe I should use mysql_free_result() to free up the memory after the code is done. Here is a simplified example of a search I might do? How would I apply mysql_free_result() to free up the memory effectively?
$sql = mysql_query("SELECT username, password, something1, something2, something3 FROM users WHERE username='$username' AND password='$password'");
while($row = mysql_fetch_array($sql)) {
$something1 = $row["something1"];
$something2 = $row["something2"];
$something3 = $row["something3"];
}