셀렉트로 바꾸는법 좀 알려주세요 정보
셀렉트로 바꾸는법 좀 알려주세요본문
<? $list3 = sql_query("SELECT b.mb_id, b.mb_name,b.mb_nick, a.wr_id
FROM `$write_table` AS a
LEFT JOIN $g4[member_table] AS b ON a.mb_id = b.mb_id
GROUP BY b.mb_id");
?>
<table border=0 cellspacing=0 cellpading=0 width = 100%>
<tr>
<td>
<?php
while(($row1 = mysql_fetch_array($list3)) == true){
?>
<a href="<?=$g4['path'];?>/bbs/board.php?bo_table=<?= $write_table;?>&sfl=mb_id&sfx=<?= $row1['mb_id'];?>"><?= $row1['mb_nick'];?></a>
<?php } ?>
</td>
</tr>
</table>
이소스는 게시판에 글을 작성한사람을 보여주고 클릭시 검색되서 그사람글만 보이는 소스인데요
이것을 셀렉트로 바꾸는법 좀 알려주세요
FROM `$write_table` AS a
LEFT JOIN $g4[member_table] AS b ON a.mb_id = b.mb_id
GROUP BY b.mb_id");
?>
<table border=0 cellspacing=0 cellpading=0 width = 100%>
<tr>
<td>
<?php
while(($row1 = mysql_fetch_array($list3)) == true){
?>
<a href="<?=$g4['path'];?>/bbs/board.php?bo_table=<?= $write_table;?>&sfl=mb_id&sfx=<?= $row1['mb_id'];?>"><?= $row1['mb_nick'];?></a>
<?php } ?>
</td>
</tr>
</table>
이소스는 게시판에 글을 작성한사람을 보여주고 클릭시 검색되서 그사람글만 보이는 소스인데요
이것을 셀렉트로 바꾸는법 좀 알려주세요
댓글 전체
<select onChange="location='<?="$g4[bbs_path]/board.php?bo_table=$write_table&sfl=mb_id&stx="?>' + this.value;">
<? while ($row1 = mysql_fetch_array($list3)) { ?>
<option value="<?=$row1[mb_id]?>"<? if ($sfl == "mb_id" && $row1[mb_id] == $stx) echo " selected"; ?>>
<?=$row1[mb_nick]?></option>
<? } ?>
</select>
<? while ($row1 = mysql_fetch_array($list3)) { ?>
<option value="<?=$row1[mb_id]?>"<? if ($sfl == "mb_id" && $row1[mb_id] == $stx) echo " selected"; ?>>
<?=$row1[mb_nick]?></option>
<? } ?>
</select>