플러그인 클럽바로가기 콤보 박스를 index홈으로 빼
페이지 정보
본문
나라오름님의 클럽팁!!!
<?
$sql = " select a.cb_id, a.cm_level, b.cb_name
from nc_member as a
left join nc_club as b
on a.cb_id = b.cb_id
where a.mb_id = '$member[mb_id]'
order by a.cm_level desc ";
$result = mysql_query($sql);
?>
<select name="select" onChange="go_club(this.value);">
<option> ▼ 클럽 바로 가기 =====</option>
<?
for ($i=0; $row=mysql_fetch_array($result); $i++) {
echo "<option value='$row[cb_id]'>$row[cb_name]</option>\n";
}
?>
</select>
<script language="javascript">
function go_club(cb_id)
{
if (cb_id != "") {
window.location.href = "./club_main.php?cb_id=" + cb_id;
}
}
</script>
//sir 나라오름님
<?
$sql = " select a.cb_id, a.cm_level, b.cb_name
from nc_member as a
left join nc_club as b
on a.cb_id = b.cb_id
where a.mb_id = '$member[mb_id]'
order by a.cm_level desc ";
$result = mysql_query($sql);
?>
<select name="select" onChange="go_club(this.value);">
<option> ▼ 클럽 바로 가기 =====</option>
<?
for ($i=0; $row=mysql_fetch_array($result); $i++) {
echo "<option value='$row[cb_id]'>$row[cb_name]</option>\n";
}
?>
</select>
<script language="javascript">
function go_club(cb_id)
{
if (cb_id != "") {
window.location.href = "./club_main.php?cb_id=" + cb_id;
}
}
</script>
//sir 나라오름님
관련링크
댓글목록
등록된 댓글이 없습니다.