Hello experts, please help me solve this kind of problem. I've already checked the error on line 11 but i seem to not found what's wrong. I've also tried solutions suggested by the page but it's still not working. Please help me.
error: ( ! ) Parse error: syntax error, unexpected '$_POST' (T_VARIABLE), expecting ',' or ')' in C:\wamp64\www\project\server.php on line 11
Here's the part of error in my code:
//<?php
$username = "";
$home = "";
$errors = array();
//connect to the database
$db = mysqli_connect('localhost', 'root', '', 'registration');
// if the register button is clicked
if (isset($_POST['register'])) {
$username = mysqli_real_escape_string(mysqli $_POST['username']);
$houseno = mysqli_real_escape_string(mysqli $_POST['houseno']);
$phonetel = mysqli_real_escape_string(mysqli $_POST['phonetel']);
$password1 = mysqli_real_escape_string(mysqli $_POST['password1']);
$password2 = mysqli_real_escape_string(mysqli $_POST['password2']);
if (empty($username)) {
array_push($errors, "Username is required");
//
Your help is much appreciated!