should each php-script clean up it's mysql connections

From: Date: Wed, 02 Jul 2003 16:30:22 +0000
Subject: should each php-script clean up it's mysql connections
Groups: php.db 
Request: Send a blank email to php-db+get-29036@lists.php.net to get a copy of this message
Hi, I just noticed something I haven't done before. I was writing this piece of code: $articlequery = "SELECT somestuff FROM sometable"; $result = mysql_query($query); $row = mysql_fetch_row($result); But I didn't get the result I expected. Finally, I noticed that my new querystring was $articlequery and not $query. The query saved to $query was apperently some old query used in another php-script within my site. Therefore I wonder: Is it a good behavior to end connections or let every php-script clean up after it self in some way? -- anders thoresson

« previous php.db (#29036) next »