For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > March 2006 > Proper procedure to close mysql queries!









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Proper procedure to close mysql queries!
JeRRy

2006-03-21, 9:58 pm

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?

Thanks!

J

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com