In a webpage that I have many queries, I must have one of

" // start
$linkid1 = mysql_connect($hostname,$username,$password);
@mysql_select_db($database,$linkid1) or die( "Unable to select database");
....
queries SELECTs , UPDATEs
....
mysql_close($linkid1); // end
"
AND ADDITIONALLY A
mysql_free_result($result);
for each $result=select statement ?