버튼 클릭후 페이지 새로고침되게 하고 싶어요

버튼 클릭후 페이지 새로고침되게 하고 싶어요

QA

버튼 클릭후 페이지 새로고침되게 하고 싶어요

답변 1

본문

if ($proc == "buy") {
    $sql = " select qst_today, qst_rest from q_stock_list where qst_code='$code' ";
    $row = sql_fetch($sql);

    $price = $row[qst_today];
    $restnum = $row[qst_rest];
    $tradesum = $price * $tradenum;

    if (!$row) { jsonout(901); }
    if (ceil($tradesum*($commission+1)/$pointratio) > $rg1['WCoin']) { jsonout(101); }
    if ($restnum < $tradenum) {    jsonout(102); }

    buy_proc($member[mb_id], $code, $tradenum);

    $sql = " insert into q_stock_trade
                set mb_id = '$member[mb_id]',
                    qst_code = '$code',
                    qst_proc = '$proc',
                    qst_tradenum = '$tradenum',
                    qst_price = '$price',
                    qst_datetime = '$g4[time_ymdhis]' ";
    sql_query($sql);

    jsonout(100);
}

 

//    jsonout(100); 이게 구매성공 OK버튼입니다. OK하고나면 페이지 새로고침 하고 싶어요...

이 질문에 댓글 쓰기 :

답변 1

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 8
© SIRSOFT
현재 페이지 제일 처음으로