Page 1 of 1

What the .....? What im i doing wrong?

Posted: Mon Jun 03, 2002 1:16 pm
by roger_keulen
This returns "JobJob, JobJob" but it must return "JobJob, 11"

What i'm i doing wrong?


class defaultscript{
var $siteid;
var $scriptenigne;

etc..

class jobjobscript extends defaultscript{
function jobjobscript(){
$this->$siteid = 11;
$this->scriptengine = "JobJob";


$aid = $this->$siteid;
$ascriptname = $this->$scriptname
echo "jobjobscript class created $ascriptname, $aid<br>";
defaultscript::defaultscript();
}

Posted: Tue Jun 04, 2002 7:12 am
by twigletmac
Not sure if it'll help but shouldn't

Code: Select all

$this->$siteid = 11; 
$this->scriptengine = "JobJob"; 


$aid = $this->$siteid; 
$ascriptname = $this->$scriptname
be

Code: Select all

$this->siteid = 11; 
$this->scriptengine = "JobJob"; 


$aid = $this->siteid; 
$ascriptname = $this->scriptname
Mac

Posted: Tue Jun 04, 2002 10:36 am
by honkyinc
Don't you hate how sometimes the most obvious things to other people are things you'd NEVER catch? One of my pet peeves about programming... though admittely not much can be done about it.

Posted: Tue Jun 04, 2002 10:47 am
by Johnm
Don't you hate how sometimes the most obvious things to other people are things you'd NEVER catch?
So it is not just me? Well, as they say... "Misery loves company". <g>
Direwolf