2줄로 출력되게 할려면 어떻게해야..?? > 그누3질답

그누3질답

2줄로 출력되게 할려면 어떻게해야..?? 정보

2줄로 출력되게 할려면 어떻게해야..??

본문

잘모르겠습니다..
아래의 구문으로 작업한결과 한줄로만 출력이되는데요..
2줄 혹은 3줄로 출력되게 할려면 어떻게 손을 봐야하지요..

<table width=100% cellpadding=3>
                <?
                // 1단계 분류만
                $sql = " select * from $cfg[table_category]
                          where LENGTH(ca_id) = 3
                          order by ca_id ";
                $result = sql_query($sql);
                while ($row=mysql_fetch_array($result)) {
                    echo "<tr><td>출력물</td></tr>";
                }
                ?>
                </table>
  • 복사

댓글 전체

<table width=100% cellpadding=3>
<?
// 1단계 분류만
$sql = " select * from $cfg[table_category]
          where LENGTH(ca_id) = 3
          order by ca_id ";
$result = sql_query($sql);
$i = 0;
while ($row=mysql_fetch_array($result)) {
    if ($i>0 && ($i%3==0)) {
        echo "</tr><tr>";
    }
    echo "<td>출력물</td>";
    $i++;
}
?>
</table>
나라오름님 감사합니다..
잘 쓰겠습니다.

Parse error: parse error, unexpected $ in 주소 on line 161 가 뜨네요..
아..요 에러는 }가하나빠져있어서 그런거드라구요..

근데..리스트가 아예 안나타나는 현상이...
© SIRSOFT
현재 페이지 제일 처음으로