我如何插入值+ 1
$id_agen = $_POST['id_agen'] + 1;
$type = $_POST['type'];
$harga = $_POST['harga'];
$jenis = $_POST['jenis'];`enter code here`
$count = count($_POST['harga']);
for ($i=0; $i<$count; $i++) {
mysql_query("INSERT INTO tbl_harga_agen (`id_agen`, `hrg_agen`, `type`, `id_jenis` )VALUES('$id_agen[$i]' ,'$harga[$i]', '$type[$i]', '$jenis[$i]' )");
}
在行$ id_agen中,如何插入此