T_RETURN error in php
<p>I am unable to find my mistake. It says I have a T_RETURN error in line 34.</p>

<pre><code>if ($type == 'post') {
$query = "INSERT INTO=Oktoberfest2013 (First Name, Last Name, Phone, Address, Department,Email Address, Level of Traning) 
VALUES ('$fname','$lname', '$phone', '$address', '$department', '$email', '$level')";
    if(!$mysqli-&gt;query($query))(
    return Errormessage: $mysqli-&gt;error);
</code></pre>

<p>The last line is line 34.</p>

<p>Here is the rest of the code: 
        

<pre><code>require_once('config.php');
function connect() {
$mysqli = new mysqli( DB_HOST, DB_USER, DB_NAME, DB_PASS);

if( $mysqli-&gt;connect_error)
    {die('connect_error ('. $mysqli-&gt;connect_error .')' 
    . $mysqli-&gt;connect_error);

    }

    return $mysqli;
    }

Function insert ($types, $values) {
$mysqli = connect ();

if ($type == 'post') {
$query = "INSERT INTO=Oktoberfest2013 (First Name, Last Name, Phone, Address, Department,Email Address, Level of Traning) 
VALUES ('$fname','$lname', '$phone', '$address', '$department', '$email', '$level')";
    if(!$mysqli-&gt;query($query))(
    return Errormessage: $mysqli-&gt;error);

    }
   Function select ($query) {
mysqli = connect();

$result=$mysqli-&gt;query($query);

While ($obj=$result-&gt;fetch_object(:)(
    $result[] =$obj;)

    return $return

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