Hi Chris, Thanks for that, always wondered. So what does just using '?>' do than? Must close eventually but I am guessing by using that as a close the connection times out after a set period of time and the 'pid' is killed, correct? J ---chris said--- mysql_close closes a database connection. What do you mean by a php query to mysql ? If you want to free memory from a mysql query result, mysql_free_result does that. -- Postgresql & php tutorials http://www.designmagick.com/