skin.board.link/set_order_update.php
2024-10-23 00:08:19 +09:00

20 lines
599 B
PHP

<?php
include_once "./_common.php";
if (is_array($idx)) {
for ($i = 0; $i < count($idx); $i++) {
$k = $idx[$i];
sql_query("UPDATE {$write_table}
SET wr_10 = '{$order[$k]}',
wr_1 = '{$subject[$k]}',
wr_link1='{$banner[$k]}',
wr_link2='{$link[$k]}'
WHERE wr_id='{$k}'
");
if ($board['bo_use_category'] && $board['bo_category_list'] && $category[$k] != '') {
sql_query("update {$write_table} set ca_name='{$category[$k]}' where wr_id='{$k}'");
}
}
}
goto_url('./set_order.php?bo_table=' . $bo_table . '&write_table=' . $write_table);