글복사 sql query에 볋칭 as 추가 및 포인트 업데이트 코드 수정

This commit is contained in:
thisgun
2024-06-04 10:25:59 +09:00
parent 3fd8740c92
commit f4dfbacf03
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ include_once('./_common.php');
$po_id = isset($_POST['po_id']) ? preg_replace('/[^0-9]/', '', $_POST['po_id']) : 0;
$po = sql_fetch(" select * from {$g5['poll_table']} where po_id = '{$_POST['po_id']}' ");
$po = sql_fetch(" select * from {$g5['poll_table']} where po_id = '$po_id' ");
if (! (isset($po['po_id']) && $po['po_id']))
alert('po_id 값이 제대로 넘어오지 않았습니다.');