note 102544 added to function.mysql-close

[email protected] Sun, 20 Feb 2011 13:44:34 -0800
Newsgroups php.notes
Message-ID <[email protected]>
The variable is definitely not optional in 5.3... Caused me a bit of a headache when I was debugging until I realized it was the close function that was causing a hang. So if using just:

<?php
mysql_connect(<...>);

mysql_close();
?>

Use:

<?php
$connection = mysql_connect(<...>);

mysql_close($connection);
?>

(where $connection is any variable of your choice)
----
Server IP: 69.147.83.197
Probable Submitter: 96.63.20.121
----
Manual Page -- http://www.php.net/manual/en/function.mysql-close.php
Edit        -- https://master.php.net/note/edit/102544
Del: integrated  -- https://master.php.net/note/delete/102544/integrated
Del: useless     -- https://master.php.net/note/delete/102544/useless
Del: bad code    -- https://master.php.net/note/delete/102544/bad+code
Del: spam        -- https://master.php.net/note/delete/102544/spam
Del: non-english -- https://master.php.net/note/delete/102544/non-english
Del: in docs     -- https://master.php.net/note/delete/102544/in+docs
Del: other reasons-- https://master.php.net/note/delete/102544
Reject      -- https://master.php.net/note/reject/102544
Search      -- https://master.php.net/manage/user-notes.php