07-03-2008, 08:38 AM
|
#16 (permalink)
|
|
The Prestige
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
|
PHP Code:
if ( ! $this->$dbtestcon) { die('Could not connect: ' . mysql_error()); }
should be
PHP Code:
if ( ! $this->dbtestcon) { die('Could not connect: ' . mysql_error()); }
When accessing properties of an object, you dont need the '$' unless its static:
PHP Code:
$this->varName; self::$varName;
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
|
|
|
|