Hi forum,
I have a very strange problem with a very simple script that looks something like:
<?php
...
$db = mysql_connect($host, $user, $pass) || die('Could not connect: ' . mysql_error());
echo 'Connected successfully';
mysql_close($db) || die('Could not close: ' . mysql_error());
?>
When I run this code, I do see 'Connected successfully' message, but also get a following warning followed by 'Could not close' 😕
"Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in [line #]..."
I would really appreciate if anyone can provide any insight for this problem. Thanks in advance,