Is there a way to store sql server Link Resources as class variables in an object? Whenever I do I get a "Warning: odbc_exec(): supplied argument is not a valid ODBC-Link resource"
class DB{
var $cid;
DB{
$this->cid = odbc_connect("foo","foo","foo");
}
}
I can retrieve $cid in this script and get back "resourse #foo" but as soon as I go to another script, in the same session, the $cid gets reset to 0, even though if I have other variables within DB they keep their values.... I'm confused.