我的代码在帖子上采用多个值,例如`
<form id='students' method='post' class="form-horizontal no-margin" name='students' action='manage_shows.php'>
<input class="input-small" type="text" id='tamil' name='tamil[]' >
<input class="input-small" type="text" id='english' name='english[]' >
等等..
当我尝试插入 db 时显示数组值
include('config.php'); if(isset($_POST['submit'])) {
$tamil=$_POST['tamil'];
$english=$_POST['english'];
$sql = "INSERT INTO `shows` ( from , to , seats , cost , screen ) VALUES ('$fname','$lname','$tamil','$english','$computer')";
它仅将数组数组插入数据库。如何将帖子值添加到数据库?
提前致谢
艾美丝