Re: Proper procedure to close mysql queries!

From: Date: Wed, 22 Mar 2006 03:00:53 +0000
Subject: Re: Proper procedure to close mysql queries!
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-41571@lists.php.net to get a copy of this message
JeRRy wrote:
Hi, Just need some mailing list input here, what is the proper way to close a mysql query using PHP. - What is the proper way to close a php query to mysql if one query is in the file? - What is the proper way to close a php query to mysql if 2 or more queries is in the file and where do you close it off? So if I use <? code here ?> or <?php code here ?> is that a safe way to do it and does this close the mysql session off or does it timeout after a set period of time? Or is a better way mysql_close()? Or do both work the same?
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/

« previous php.db (#41571) next »