2줄로 출력되게 할려면 어떻게해야..?? 정보
2줄로 출력되게 할려면 어떻게해야..??관련링크
http://테스트주소없습니다.
11회 연결
본문
잘모르겠습니다..
아래의 구문으로 작업한결과 한줄로만 출력이되는데요..
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>
아래의 구문으로 작업한결과 한줄로만 출력이되는데요..
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>
<?
// 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 가 뜨네요..
아..요 에러는 }가하나빠져있어서 그런거드라구요..
근데..리스트가 아예 안나타나는 현상이...
잘 쓰겠습니다.
Parse error: parse error, unexpected $ in 주소 on line 161 가 뜨네요..
아..요 에러는 }가하나빠져있어서 그런거드라구요..
근데..리스트가 아예 안나타나는 현상이...
위에꺼 다시 수정했습니다....ㅡㅡ
다시 해보시고 계속 안나오면 다시 코멘트 남기세요...
다시 해보시고 계속 안나오면 다시 코멘트 남기세요...
덕분에 잘 수정했습니다..잘됩니다..감사합니다.^^