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
Your for loop is not terminated. You are missing a }
for ($i = 0; $i < count($_POST[field_name]); $i++) {
$sql .= $_POST[field_name][$i]." ".$_POST[field_type][$i];
}
And as pointed by others there is also a missing } for the last if statement:
if ($result) {
$msg = "< p>" .$_POST[table_name]." has been created!< /p>";
}