PHP error: Parse error: syntax error, unexpected '->' : <p>I am new to PHP. I am trying to create a textbox in html, and take the input via php and store it in my Mysql database.</p>

<p>I can't get past this error.</p>

<p><strong>Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR)</strong></p>

<p>I understand the <code>-&gt;</code> is wrong. But I don't know how to fix it.</p>

<p>Also is there any other errors that you guys see in this code? I appreciate your help.</p>

<pre class="lang-php prettyprint-override"><code>    &lt;form action="user-post.php" method="get"&gt;
    &lt;input type="post-box" name="postbox" required&gt;
    &lt;input type="submit" value="Submit"&gt;
&lt;/form&gt;

&lt;?php 

    session_start();
    $_SESSION['message'] = '';

    $mysqli = new mysqli('localhost:3306', 'root', '1234', 'status-box');

if ($_SERVER['REQUEST_METHOD'] == 'GET') {
    $postbox = mysqli-&gt;real_escape_string($_GET['postbox']);

    $sql = "INSERT INTO post (postbox)"
           . "VALUES ('$postbox')";

    if ($mysqli-&gt;query($sql) === true) {
        header("location: index.html");
    } else {
    $_SESSION['message'] = "Post could NOT be added to the database!";
    }

}

?&gt;
</code></pre>
