latest.lib.php 에서 나눈 필드 표시하는 방법
1. latest.lib.php 파일에서 sql 구문이 아래와 같구요.
$sql = " select * from $tmp_write_table where wr_is_comment = 0 and $options = 1 order by wr_num limit 0, $rows ";
2. 위 구문에서 $options 자리에 나눈 필드값을 넣으려고 합니다.
필드는 write.skin.php 에서 아래와 같이 나눴습니다.
$controls = explode("|",$write[wr_1]);
$controls_00 = $controls[0];
$controls_01 = $controls[1];
3. $options 자리에 $controls_01 을 넣으려면 어떻게 해야 할까요?
$sql = " select * from $tmp_write_table where wr_is_comment = 0 and $options = 1 order by wr_num limit 0, $rows ";
2. 위 구문에서 $options 자리에 나눈 필드값을 넣으려고 합니다.
필드는 write.skin.php 에서 아래와 같이 나눴습니다.
$controls = explode("|",$write[wr_1]);
$controls_00 = $controls[0];
$controls_01 = $controls[1];
3. $options 자리에 $controls_01 을 넣으려면 어떻게 해야 할까요?
|
댓글을 작성하시려면 로그인이 필요합니다.
로그인
댓글 2개
나누지 않은 필드는 잘 나오는 데 뭔가가 더 필요한 것 같습니다.