Can anyone here shed some light on this issue?
I have a class which is responsible for it's own database access and (some
of it) is initalised as below:
?
class myClass
{
var $conn;
var $sth;
// etc...
function myClass ($db)
{
$host = localhost;
$user =
On Friday, May 31, 2002 at 4:11:42 PM, you wrote:
When I try to work with the first instance of my class, I get an error which
I finally tracked down to it trying to run it's SQL queries against the
database defined in $c2. Now, I was under the impression that class
variables were private to
I am doing that - sorry, should have given you a bit more code...
?
class myClass
{
var $conn;
var $sth;
// etc...
function myClass ($db)
{
$host = localhost;
$user = user_name;
$password = password;
$this-conn = mysql_connect ($host, $user,
3 matches
Mail list logo