<?PHP
class users{
var id;
var name;
var lastnm;
var location;
var nick;
var contact;
var password;
var retypeps;
function dbinstert($val[0],$val[1],$val[2],$val[3],$val[4],$val[5],$val[6],$val[7]){
this->id = $id;
this->name = $name;
this->lastnm = $lastnm;
this->location = $location;
this->nick = $nick;
this->contact = $mail;
this->web = $web;
this->password = $pass;
$query = "insert into table test values(null,'$name','$lastnm','$location','$nick','$pass'";
$result = mysql_query($query) or die(mysql_error());
if($result != true){
return false;
}else{
return true;
}
mysql_close($result);
}
function chekus(this->nick = $nick){
$chek = mysql_query("select nick from test where nick='$nick'") or die(mysql_error());
if($chek !=0){
return = 0;
}else{
return 1;
}
mysql_close($chek);
}
function ckmail($this->contact = $mail){
//validation
}
function ckpass($this->password = $pass , $retypeps->$retype){
if($pass != $retype){
return 0;
}else{
return 1;
}
}
}
?>
in get this error
Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE in xxx\htdocs\fd\users.class on line 5
little help here?
thanks by the way!
