소스코드 질문좀 드리겠습니다.
본문
안녕하세요 질문좀 드리겠습니다
아래 코드를
<li> <a href="/bbs/board.php?bo_table=to03&sca=auction" <?php if (in_array($bo_table, array("auction"))) echo ' id="bo_cate_on"'; ?> >역경매</a></li>
이런식으로 해당주소에 있을시 css >bo_cate_on 가작동되게끔 하고싶은데 어떻게 해야하나요 ㅠㅠ?
방법좀 알려주시면 감사하겠습니다
<li><a href="/bbs/board.php?bo_table=<?php echo $bo_table ?>&wr_5=&wr_6=<?=$_GET['wr_6']?>&wr_7=<?=$_GET['wr_7']?>">전체</a></li>
<li><a href="/bbs/board.php?bo_table=<?php echo $bo_table ?>&wr_5=삼성전자.&wr_6=<?=$_GET['wr_6']?>&wr_7=<?=$_GET['wr_7']?>">삼성전자</a></li>
<li><a href="/bbs/board.php?bo_table=<?php echo $bo_table ?>&wr_5=LG전자.&wr_6=<?=$_GET['wr_6']?>&wr_7=<?=$_GET['wr_7']?>">LG전자</a></li>
<li><a href="/bbs/board.php?bo_table=<?php echo $bo_table ?>&wr_5=APPLE.&wr_6=<?=$_GET['wr_6']?>&wr_7=<?=$_GET['wr_7']?>">APPLE</a></li>
<li><a href="/bbs/board.php?bo_table=<?php echo $bo_table ?>&wr_5=기타.&wr_6=<?=$_GET['wr_6']?>&wr_7=<?=$_GET['wr_7']?>">APPLE</a>기타</a></li>
답변 1
<li><a href="/bbs/board.php?bo_table=<?php echo $bo_table ?>&wr_5=&wr_6=<?=$_GET['wr_6']?>&wr_7=<?=$_GET['wr_7']?>" <?php if(!$wr_5) echo 'id="bo_cate_on"';?>>전체</a></li>
<li><a href="/bbs/board.php?bo_table=<?php echo $bo_table ?>&wr_5=삼성전자.&wr_6=<?=$_GET['wr_6']?>&wr_7=<?=$_GET['wr_7']?>" <?php if($wr_5 == "삼성전자") echo 'id="bo_cate_on"';?>>삼성전자</a></li>
<li><a href="/bbs/board.php?bo_table=<?php echo $bo_table ?>&wr_5=LG전자.&wr_6=<?=$_GET['wr_6']?>&wr_7=<?=$_GET['wr_7']?>" <?php if($wr_5 == "LG전자") echo 'id="bo_cate_on"';?>>LG전자</a></li>
<li><a href="/bbs/board.php?bo_table=<?php echo $bo_table ?>&wr_5=APPLE.&wr_6=<?=$_GET['wr_6']?>&wr_7=<?=$_GET['wr_7']?>" <?php if($wr_5 == "APPLE") echo 'id="bo_cate_on"';?>>APPLE</a></li>
<li><a href="/bbs/board.php?bo_table=<?php echo $bo_table ?>&wr_5=기타.&wr_6=<?=$_GET['wr_6']?>&wr_7=<?=$_GET['wr_7']?>" <?php if($wr_5 == "기타") echo 'id="bo_cate_on"';?>>기타</a></li>
답변을 작성하시기 전에 로그인 해주세요.