<?php
/* User info to access to db */
$db_host = "";
$db_name = "";
$db_user = "root";
$db_pass = "root";
/* Create an object patient */
class patient
{
public $name;
public $surname;
public $address;
public $birth_place;
public $province;
public $birth_date;
public $sex;
public $case;
public __construct($nm,$sur,$addr,$bp,$pr,$bd,$sx,$cs) <-- line 26
{
$this->name = $nm;
$this->surname = $sur;
$this->address = $addr;
$this->birth_place = $bp;
$this->province = $pr;
$this->birth_date = $bd;
$this->sex = $sx;
$this->case = $cs;
}
}
?>
I get this error:
Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE on line 26
why? where is the mistake?