DynamicForm PHP问题[重复]

This question already has an answer here:

if (isset($_POST['form'])) { $company = $_POST['company']; $prefix = $_POST['prefix']; $protocol = $_POST['protocol']; $status = $_POST['status']; $ip_noncli = array(); $more = TRUE; $i = 1;
while($more)
    {
        if((isset($_POST['noncli_'.$i])) && ($_POST['noncli_'.$i] != ""))
        {

            $ip_noncli[] = '(\'' . $_POST['noncli_'.$i] . '\',
                             \'' . ($_POST['company'] . '\',
                             \'' . ($_POST['prefix'] . '\', 
                             \'' . ($_POST['protocol'] . '\',
                             \'' . ($_POST['status'] . '\')';

        }
        else
        {
            $more = FALSE;
        }

        $i++;
    }

    if(count($ip_noncli) > 0)
    {
        mysqli_query($link, "INSERT INTO trank (`ip_noncli`, `company`,`prefix`,`protocol`,`status`) 
        VALUES
        " . implode(',', $ip_noncli)) or die(mysqli_error($link));
    }

PHP Parse error: syntax error, unexpected ';' on line 29 \'' . ($_POST['status'] . '\')'; Please help me who has any idea

</div>

Syntax Error. In the line starting with $ip_noncli[] you got ( in front of some of the $_POSTs, but they are never closed.

Anything wrong with mixing quotes?

        $ip_noncli[] = "('".$_POST[{'noncli_'.$i}]."',
                         '" . ($_POST['company'] . "',
                         '" . ($_POST['prefix'] . "', 
                         '" . ($_POST['protocol'] . "',
                         '" . ($_POST['status'] . "')";

Also, to include a variable inside a identifier (variable) you generally need to use curly brackets.