급합니다 도와주십시요 ! 정보
급합니다 도와주십시요 !본문
data[file1]의 값으로 no의 값을 구하기 위하여
<?
$nitem = "select no from avatar_item_table where file1='$data[file1]'";
?>
라고 했습니다.
그런데
$data[file1] 이 m_asdd.png 라 할때
웹페이지서 select no from avatar_item_table where file1='m_asdd.png' 라는 값이
문자 그대로 출력됩니다. 뭔가 잘못한건가요?
<?
$nitem = "select no from avatar_item_table where file1='$data[file1]'";
?>
라고 했습니다.
그런데
$data[file1] 이 m_asdd.png 라 할때
웹페이지서 select no from avatar_item_table where file1='m_asdd.png' 라는 값이
문자 그대로 출력됩니다. 뭔가 잘못한건가요?
댓글 전체
$nitem = "select no from avatar_item_table where file1='$data[file1]'";
은 쿼리 문자열 입니다 echo $nitem; 하신거같은데요 ^^
no를 출력하려면 쿼리를 실행해야합니다
$row = sql_fetch("select no from avatar_item_table where file1='$data[file1]'");
echo $row[no];
은 쿼리 문자열 입니다 echo $nitem; 하신거같은데요 ^^
no를 출력하려면 쿼리를 실행해야합니다
$row = sql_fetch("select no from avatar_item_table where file1='$data[file1]'");
echo $row[no];
Call to undefined function sql_fetch() in 라고 뜨네요 ㅠㅠ 뭐가 잘못된 걸까요
아.. 정의파일이 common.lib.php인가요.. 인클루드를 어떻게 해야할지 모르겠네요.
수정한 파일이 있는 경로가 $g4[path]/avatar/avatar_skin/default/xxx.php 입니다.
아.. 정의파일이 common.lib.php인가요.. 인클루드를 어떻게 해야할지 모르겠네요.
수정한 파일이 있는 경로가 $g4[path]/avatar/avatar_skin/default/xxx.php 입니다.