foreach ($_FILES['files']['tmp_name'] as $key=>$value){
$ads_table=ads_table;
$path_to_save_db='ads/'.$_FILES['files']['name'][$key];
$id="60";
mysql_query("INSERT INTO $ads_table (ad_url) VALUES ('$path_to_save_db')") or (mysql_error());
}
これはうまくいきます!しかし、別の列「id」を追加すると
foreach ($_FILES['files']['tmp_name'] as $key=>$value){
$ads_table=ads_table;
$path_to_save_db='ads/'.$_FILES['files']['name'][$key];
$id="60";
mysql_query("INSERT INTO $ads_table (id,ad_url) VALUES ('$id','$path_to_save_db')") or (mysql_error());
}
どのように挿入id=>60 ad_url=>ads/:no file name:
しますか?