row
即使它已经存在,它也会不断添加,我不明白为什么?
$submitted = explode("@", $submit['tag']);
foreach ($submitted as $tag => $value) {
if ($value != "") {
$attag = "@".$value;
$sql_insert = dbquery("INSERT INTO dbtags(tag_name, tag_txt) VALUES('$value', '$attag') ON DUPLICATE KEY UPDATE tag_name=tag_name");
}
}
任何人都可以帮忙吗?