묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
함수좀 봐주세요
2004.02.25 02:06
고수님들 함수좀 봐주세요
아무리 해도 몰르겠네요
noimage가 안뜹니다 계속 함수가 어떻게 해야 하죠?
------------------------------------------------------------
<?
$sql =" select a.bo_subject, a.bo_table, b.gr_subject from $cfg[table_board] a, $cfg[table_group] b where a.gr_id = b.gr_id AND b.gr_id = '003' order by rand() desc limit 3";
$result = sql_query($sql);
for ($i=0; $row=mysql_fetch_array($result); $i++) {
if($row[bo_table]){ echo "<tr><td><img src=./data/member/$row[bo_table]/$row[bo_table].gif>";}
else{"<img src=./노이미지.gif>";} <----여기 이부분
{ echo "</td> <td width=5></td> <td valign=top><table cellpadding=0 cellspacing=0 border=0 width=100%>
<tr><td height=20><b>$row[bo_table]</b>님 </td></tr>
<tr><td valign=top><a href='./?doc=bbs/board.php&bo_table=$row[bo_table]'><b>$row[bo_subject]</b></a></td></tr>
</table></td></tr>";}
}mysql_free_result($result);
?>
아무리 해도 몰르겠네요
noimage가 안뜹니다 계속 함수가 어떻게 해야 하죠?
------------------------------------------------------------
<?
$sql =" select a.bo_subject, a.bo_table, b.gr_subject from $cfg[table_board] a, $cfg[table_group] b where a.gr_id = b.gr_id AND b.gr_id = '003' order by rand() desc limit 3";
$result = sql_query($sql);
for ($i=0; $row=mysql_fetch_array($result); $i++) {
if($row[bo_table]){ echo "<tr><td><img src=./data/member/$row[bo_table]/$row[bo_table].gif>";}
else{"<img src=./노이미지.gif>";} <----여기 이부분
{ echo "</td> <td width=5></td> <td valign=top><table cellpadding=0 cellspacing=0 border=0 width=100%>
<tr><td height=20><b>$row[bo_table]</b>님 </td></tr>
<tr><td valign=top><a href='./?doc=bbs/board.php&bo_table=$row[bo_table]'><b>$row[bo_subject]</b></a></td></tr>
</table></td></tr>";}
}mysql_free_result($result);
?>