db를 불러 올때 g3에서는 되었는데 g4에서는 왜않되죠?

질문좀 올리겠습니다...
g3에서 데이터를 불러 와서 사용하고 있는데...
g4에서는 똑같이 불러 오니 내용이 뜨질 않는군요?
방법이 없을까요?
 
 
아래는 g3에서 사용한 호출소스 입니다.
그리고 링크 1 은 g3 적용된것
          링크 2는  g4 입니다.
(오른쪽 상단의 오늘의 탄생화)
 
 
 
 
 
<!-- 탄생화 뷰  --->
 <?
 if(!$day) $day=date('m').date('d'); 
 $SQL = "select * FROM DayFlowered WHERE Day='$day'";
 //echo("$SQL");
 $Query    = @mysql_query($SQL, $connect) ;  
// connect를 정의한 함수를 찾을 수가 없습니다...... 확인해 보세요
 $total    = @mysql_num_rows($Query);
 //if($total<=0)Message("자료가 없습니다. ",-1); 
 @mysql_data_seek($Query, $i);
 $row=@mysql_fetch_array($Query);
 $nowdayis = substr($row[Day],0,2)."월 ".substr($row[Day],2,2)." 일";
echo("
 <!-- DayFlower frame start -------------------------><br>
 <table border=0 width=98% cellpadding='0' cellspacing='0' bordercolor='white' bordercolorlight='ebff99' bordercolordark='52cc00' >
 <tr>
 <td align=CENTER>
     
        <table border=0 width=100% cellpadding='0' cellspacing='0' bordercolor='white' bordercolorlight='ffffff' bordercolordark='cccccc' >
        <tr><td>
  <table border=0 width=100% cellpadding='0' cellspacing='2'>
  <tr>
  <td nowrap valign=top>날짜:</td>
      <td width=1024>$nowdayis</td>
  </tr>
  <tr>
  <td nowrap valign=top>이름:</td>
       <td width=1024>$row[KorName]</td>
   </tr>
  <tr>
  <td nowrap valign=top>영명:</td>
      <td width=1024>$row[EngName]</td>
  </tr>
  <tr>
  <td nowrap valign=top>꽃말:</td>
      <td width=1024>$row[FlowerSpeak]</td>
  </tr>
  <tr>
  <td nowrap valign=top></td>
      <td width=1024><a href='/info/index.html?mode=dayflower' target=_blank><font size=-1>More...</font></a></td>
  </tr>
  </table> 
     </td></tr>
     </TABLE> 
 </td>
 </tr>
 </table>
 <!-- DayFlower frame end  ------------------------->
");
?>
|

댓글 4개

@mysql_data_seek($Query, $i);
$i가 없으니 이 문장을 빼고 해 보세요.

또는

$Query = @mysql_query($SQL, $connect) ;
대신
$Query = @mysql_query($SQL) ;
를 써 보세요.
rolo님이 답해주신 부분중에 위의 내용은 모르나
아래 내용은 맞습니다.....
$connect를 빼야 합니다.......ㅎㅎㅎ
g4에서는 mysql link 변수가 $connect가 아닌가 봅니다. ^^
rolo님!!
네잎클로버님 !
답변 감사 합니다...
rolo님이 말씀하신대로
$Query = @mysql_query($SQL, $connect) ;
대신
$Query = @mysql_query($SQL) ; 이렇게 쓰니 되는 군요...
$connect문을 빼니 이상 없이 잘 됩니다^^;;
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
19년 전 조회 1,516
휘중
19년 전 조회 1,001
19년 전 조회 1,514
19년 전 조회 947
19년 전 조회 1,146
19년 전 조회 1,555
19년 전 조회 960
19년 전 조회 1,512
19년 전 조회 1,447
19년 전 조회 1,595
19년 전 조회 1,087
19년 전 조회 1,279
19년 전 조회 1,534
19년 전 조회 1,521
19년 전 조회 1,656
19년 전 조회 1,538
19년 전 조회 1,665
19년 전 조회 1,396
19년 전 조회 1,793
19년 전 조회 1,671
🐛 버그신고