latest.lib.php 에서 나눈 필드 표시하는 방법 정보
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 을 넣으려면 어떻게 해야 할까요?
댓글 전체
$options = '1' 대신에 $controls_01 = '원하는 값' 으로 대체 하시면 됩니다.
$controls_01 을 넣으면 컬럼이 없다고 나오네요.
나누지 않은 필드는 잘 나오는 데 뭔가가 더 필요한 것 같습니다.
나누지 않은 필드는 잘 나오는 데 뭔가가 더 필요한 것 같습니다.