갤러리게시판 질문입니다... 정보
갤러리게시판 질문입니다...본문
현재 갤러리게시판에서 분류를 사용하고있어요...
메인페이지에서 최근이미지 형식을 탭으로 만들어가지구요...
분류대로 이미지 불러오게 할수있나요?
이소스를
<?=latest("latest_shim4u_nogal", "prod", 4, 120, "100, 1, 15" );?>
이렇게 썻더니 안되네요..^^.....
<?=latest("latest_shim4u_nogal", "prod&sca=신제품", 4, 120, "100, 1, 15" );?>
오류 주소 : http://www.chn-game.com/index.php
메인페이지에서 최근이미지 형식을 탭으로 만들어가지구요...
분류대로 이미지 불러오게 할수있나요?
이소스를
<?=latest("latest_shim4u_nogal", "prod", 4, 120, "100, 1, 15" );?>
이렇게 썻더니 안되네요..^^.....
<?=latest("latest_shim4u_nogal", "prod&sca=신제품", 4, 120, "100, 1, 15" );?>
오류 주소 : http://www.chn-game.com/index.php
댓글 전체
latest() 함수의 여분 옵션을 이미 사용하고 있으니 옵션변수를 하나 더 만들어서
latest("latest_shim4u_nogal", "prod&, 4, 120, "100, 1, 15","신제품" ) 처럼 호출하고
latest.lib.php 에서
latest($skin_dir="", $bo_table, $rows=10, $subject_len=40, $options="", $sca="") 로 수정하고
if($sca) $my_sca= " and ca_name = '$sca' "; 해주고
sql 문 where절에 $my_sca 를 추가하면 됩니다
latest("latest_shim4u_nogal", "prod&, 4, 120, "100, 1, 15","신제품" ) 처럼 호출하고
latest.lib.php 에서
latest($skin_dir="", $bo_table, $rows=10, $subject_len=40, $options="", $sca="") 로 수정하고
if($sca) $my_sca= " and ca_name = '$sca' "; 해주고
sql 문 where절에 $my_sca 를 추가하면 됩니다
균이님 도와주셔서 감사합니다..^^
하나만 더 질문할꼐요.
latest.lib.php 이파일에서
1 - latest($skin_dir="", $bo_table, $rows=10, $subject_len=40, $options="", $sca="")
이것만 수정되구요..
나머지 2곳은 어디에 수정해야 될지모르겠어요..ㅠㅠ..
하나만 더 질문할꼐요.
latest.lib.php 이파일에서
1 - latest($skin_dir="", $bo_table, $rows=10, $subject_len=40, $options="", $sca="")
이것만 수정되구요..
나머지 2곳은 어디에 수정해야 될지모르겠어요..ㅠㅠ..