تطلع لي النتائج لكن يطلع لي هالتحذيراتكود PHP:
class user {
var $user_name;
var $email;
var $password;
var $date_of_birth;
var $signature;
var $money_limit;
var $active;
var $user_group_id;
public function __construct($c_user_name,$c_email,$c_password,$c_date_of_birth,$c_signature,$c_money_limit,$c_active,$c_user_group_id)
{
$this->user_name = $c_user_name;
$this->email = $c_email;
$this->password = $c_password;
$this->date_of_birth = $c_date_of_birth;
$this->signature = $c_signature;
$this->money_limit = $c_money_limit;
$this->active = $c_active;
$this->user_group_id = $c_user_group_id;
}
}
$m = new user;
$m->__construct(m, "m@mail.com", pass, 7-1-1981, M, 10000, 1, 1);
echo "username "; echo $m->user_name; echo "<br />";
Warning: Missing argument 1 for user::__construct(), called in F:\Apache2.2\htdocs\me\t\user.php on line 100 and defined in F:\Apache2.2\htdocs\me\t\user.php on line 45
طبعاً من المتغير 1 الى 8
ارجوا المساعده