테스트 사이트 - 개발 중인 베타 버전입니다

로컬서버와 웹서버에서 서로 다른 결과가 나옵니다 채택완료

판성 3년 전 조회 1,741

웹서버에서는 정상적으로 ko1로 가져옵니다

 

 

</strong></p>

<p><div class="write_div">

        <label for="wr_content" class="title">국문 구매링크</label>

        <div class="wr_content ">

                            <input type="text" name="ko1" value="" class="full_input frm_input" size="50" placeholder="1. PlayStation Store" style="margin-bottom:5px">       

                            <input type="text" name="ko2" value="<a href="https://store.nintendo.co.kr/"" target="_blank" rel="noopener noreferrer">https://store.nintendo.co.kr/"</a> class="full_input frm_input" size="50" placeholder="2. Nintendo Online Store" style="margin-bottom:5px">       

                            <input type="text" name="ko3" value="" class="full_input frm_input" size="50" placeholder="3. Microsoft Store" style="margin-bottom:5px">       

                            <input type="text" name="ko4" value="" class="full_input frm_input" size="50" placeholder="4. Steam" style="margin-bottom:5px">       

                            <input type="text" name="ko5" value="" class="full_input frm_input" size="50" placeholder="5. Epic Games Store" style="margin-bottom:5px">       

                            <input type="text" name="ko6" value="" class="full_input frm_input" size="50" placeholder="6. 패키지판 구입" style="margin-bottom:5px">       

                    </div>        

    </div>

   </p>

<p> </p>

<p><strong>

 

 

 

로컬서버에서는 같은 소스인데 ko만 가져오는거 같습니다웹서버와 로컬서버 db가 달라서 이런걸까요?

</strong></p>

<p>

<div class="write_div">

        <label for="wr_content" class="title">국문 구매링크</label>

        <div class="wr_content ">

            <?</p>

<p>                $ko_arr = array("PlayStation Store", "Nintendo Online Store", "Microsoft Store", "Steam", "Epic Games Store", "패키지판 구입");                

                for($ko=1; $ko <= sizeof($ko_arr); $ko++)

                {

            ?>

                <input type="text" name="ko" value="" class="full_input frm_input" size="50" placeholder=". " style="margin-bottom:5px">       

            

                }

            

        </div>        

    </div>

  <strong>
  

 

 

  • Apache/2.4.52 (Win64) PHP/7.4.27
  • 데이터베이스 클라이언트 버전: libmysql - mysqlnd 7.4.27
  • Apache
  • 데이터베이스 클라이언트 버전: libmysql - mysqlnd 5.0.12-dev - 20150407 - $Id: 401a40ebd5e281cf22215acdc170723a1519aaa9 $
댓글을 작성하려면 로그인이 필요합니다.

답변 2개

채택된 답변
+20 포인트
J
3년 전

두개의 소스코드가 틀립니다?

아래의 코드에서는 name 값이나

value 값이 완전하지 않을거 같아요

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

판성
3년 전
short_open_tag 문제였습니다.

댓글을 작성하려면 로그인이 필요합니다.

3년 전

php.ini 문제였네요 해결했습니다...

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인