From bf6678e036ecffe55662328cf99664690543c433 Mon Sep 17 00:00:00 2001 From: thisgun Date: Wed, 27 Mar 2024 12:56:37 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B8=80=EC=93=B0=EA=B8=B0=20sql=20query=20?= =?UTF-8?q?=EC=97=90=20=EB=B3=84=EC=B9=AD=20as=20=EC=B6=94=EA=B0=80=20#309?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/write_update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bbs/write_update.php b/bbs/write_update.php index 4273cf950..1f6e151a8 100644 --- a/bbs/write_update.php +++ b/bbs/write_update.php @@ -259,7 +259,7 @@ if ($w == '' || $w == 'r') { } $sql = " insert into $write_table - set wr_num = " . ($w == 'r' ? "'$wr_num'" : "(SELECT IFNULL(MIN(wr_num) - 1, -1) FROM $write_table sq) ") . ", + set wr_num = " . ($w == 'r' ? "'$wr_num'" : "(SELECT IFNULL(MIN(wr_num) - 1, -1) FROM $write_table as sq) ") . ", wr_reply = '$wr_reply', wr_comment = 0, ca_name = '$ca_name',