View Single Post
Old 07-03-2008, 08:38 AM   #16 (permalink)
sketchMedia
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

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)
sketchMedia is offline  
Reply With Quote
The Following User Says Thank You to sketchMedia For This Useful Post:
codefreek (07-03-2008)