This is my code
$result = msqli_query($this->db,$sql1) or die(mysqli_connect_errno()."Data cannot inserted");

this is the error message
Parse error: syntax error, unexpected '$result' (T_VARIABLE) in C:\xampp\htdocs\project\class.user.php on line 25

show us previous lines.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.