PHP syntax error “unexpected $end”

前端 未结 7 769
清酒与你
清酒与你 2020-12-02 01:52

I have 3 files 1) show_createtable.html 2) do_showfielddef.php 3) do_showtble.php

1) First file is for creating a new table for a data base, it is a fom with 2 input

相关标签:
7条回答
  • 2020-12-02 02:33

    You must close the for expression block:

    for ($i = 0; $i < count($_POST[field_name]); $i++) {
        $sql .= $_POST[field_name][$i]." ".$_POST[field_type][$i];
        // ...
    }
    
    0 讨论(0)
提交回复
热议问题