problem with class
Posted: Mon Nov 08, 2004 8:55 am
i have mdae this class :
and
when i try to access the class :
iget
why is that?
thnaks i nadvance
peleg
Code: Select all
<?php
class purchise_prev{
var $status;
function purchise_prev($_status){
$this->$status=$_status;
}
function get_status() { return $this->$status ; }
}
?>Code: Select all
<?php
$pur_prev = new purchise_prev($row1['status']);
?>iget
where lines 73 is in the get_status()Notice: Undefined variable: status in C:\Program Files\Apache Group\Apache2\htdocs\purchise_new\order_form.php on line 73
why is that?
thnaks i nadvance
peleg