mysql_close();

From: Date: Fri, 21 Mar 2003 09:58:38 +0000
Subject: mysql_close();
Groups: php.general 
Request: Send a blank email to php-general+get-140563@lists.php.net to get a copy of this message
hi, I include a file called bottom.php which goes at the bottom of all my pages and looks like this: <td>&nbsp;</td> </tr> </table> </body> </html> <?php if ($connection = @mysql_connect($host, $username, $password)){ @mysql_close($connection); } ?> I use this to make sure that I haven't left a connection open accidentally, however I sometimes get an error message even though I am using the @ symbol: Warning: mysql_close(): no MySQL-Link resource supplied in /home/w/o/workmanagement/public_html/authenticate_user.php on line 51 How can this be?

« previous php.general (#140563) next »