note 22449 rejected from function.mysql-close by didou

From: Date: Tue, 09 Dec 2003 12:29:31 +0000
Subject: note 22449 rejected from function.mysql-close by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-61681@lists.php.net to get a copy of this message
Note Submitter: msplival at jagor dot srce dot hr ---- mysql_close seems to have no effect on linux versions of PHP. I have a function, sqlExecute, where I pass an SQL query to be executed, and the function returns the recordset (or returns nothing if the query begins with UPDATE or INSERT). That function issues mysql_connect at the begining, and mysql_close at the end. But, later in my code, if I have mysql_insert_id AFTER my sqlExecute, it seems to be working fine. Everything was ok untill I tried same thing on Windows version of php. mysql_insert_id complains about having no resource identifier (wich is logical, beacuse I issued a mysql_close in sqlExecute). Do I make any sense? Is that a linux bug (feature?)

« previous php.notes (#61681) next »