PSA: do not use mysql_ functions. See an explanation below in the answers.
I have a mysql.php
file with a class named dbAccess
which handles my insert queries. I didn't have any issues with this file until today, and I'm not sure if I accidentally changed something or what.
The warning is:
Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in /home/www/data/dbAccess/mysql.php on line 83
line 83 is this:
mysql_close($this->dbserver);
dbserver
defined as private $dbserver;
. the server is set with
$this->dbserver = "my.server.address.com"
Don't really know what I'm doing wrong with this one... Like I said it was working fine until today so I must of accidentally hit something in one of my other files which use the class? pointers on where to look are much appreciated.