Newsgroups: comp.lang.php
From: Jerry Stuckle <jstuck...@attglobal.net>
Date: Thu, 15 Nov 2012 07:46:56 -0500
Local: Thurs, Nov 15 2012 7:46 am
Subject: Re: why can`t close mysql_connect?
On 11/15/2012 5:19 AM, cngrit0...@gmail.com wrote:
> hi,
$dbs is a resource, not a true/false value as to whether the connection > I am a novice with php,today,I found can`t close mysql_connect. > I have a object "db_config.php"
> class DbConfig{
> public function getConn(){
> I will in a other php file include it "test.php"
> require (db_config.php);
> function fri_select($db,$pagenum,$counts){
> $db = new DbConfig();
> $result = fri_select($dbs,1,6);
> it will out put
> in function,con is alive;
> why???I had close it in function!!!who can tell me??
is alive or not. Even after closing the connection, the resource is still there - but not the connection. -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||