아래 소스를 며칠째 보았지만 이상은 없습니다. 뭔가 시스템 설정이라던지 또는 postmaster 의 설정 또는 시스템 리소스의 이상등등 다른 문제가 있지 않나 생각이 듭니다. 같은 소스를 혹시 다른곳에서 테스트 해 보신적은 있는지요. 현재 봐서는 특별히 도움을 드릴수가 없어 안타깝군요.
>>박미숙 님께서 쓰시길<<
:: $query="select * from shopping_cart where id='$meid' and code='01'";
:: $result=mysql_query($query, $connect) ;
:: $shcnt=mysql_num_rows($result);
:: echo "meid /$meid, $query, $result, $shcnt";
::
:: If ($shcnt > 0) {
::
:: for ($i=0;$i<$shcnt;$i++) {
:: mysql_data_seek($result,$i);
:: $row=mysql_fetch_array($result);
::
:: // for 문 안에서 다른 디비서버의 postgresql 에서 불러오죠..여기서 에러가 납니다.
:: $dbquery = "Select item_no,name1,maker,web_price,spec From item Where item_no ='$row[2
:: ]'";
:: $presult=pg_Exec ($dbh,$dbquery); // ...이곳...
:: $prow=pg_fetch_array($presult,0);
:: $price=$prow[web_price]*$row[3];
:: echo ("<tr><form>
:: <td align=center width=30%><font size=/1>$prow[name1]</font></td>
:: <td align=right> <font size=/1>$prow[web_price]</font></td>
:: <td align=center><font size=/1><input type=text name=shc value=$row[3]>
:: <a href='$PHP_SELF?action=recalc&sh=$row[0]'&shcnt=$shc>변경</a></font
:: ></td>
:: <td align=right> <font size=/1>$price</font></td>
:: <td align=center><font size=/1><a href='$PHP_SELF?action=delete&sh=$row[0]'>삭제</a
:: ></font></td>
:: <td align=center><font size=/1><a href='$PHP_SELF?action=save&sh=$row[0]'>저장</a><
:: /font></td>
:: </tr>
:: ");
::
:: } // End of For
::
:: } // End of If
::
::
::
:: loop안에서 배열로 받아온 일정한 값을 넘겨줄때 다른테이블에서 그 값에 해당되는 자료들을 가지고
:: 옵니다...
::
:: 그런데 어떤 건 가져오고 어떤건 못가져오는 현상이 일어납니다..
::
:: pg_exec(); pg_fetch_array(); 이 에러가 나죠..
::
::
:: ERROR ========================================
::
:: Warning: 1(6, 9, 12..........) is not a valid PostgreSQL link resource in ./configig2.php3 on li
:: ne 170
::
:: Warning: Supplied argument is not a valid PostgreSQL result resource in ./configig2.php3 on line
:: 171
::
::
:: 눈에 나타난 자료순서는 3번째, 6번째, 9번째, 12번째 이런식으로 3의 차이로 저런 에러가 뜹니다..
::
::
:: 그사이의 자료들은 제대로 불려지는데.... 묘한 일이죠//;;
::
::
:: 무엇이 문제인지 궁금합니다..
|