게시판별 카테고리 만들기. > 개발자팁

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!

개발자팁

개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.

게시판별 카테고리 만들기. 정보

PHP 게시판별 카테고리 만들기.

첨부파일

structure.sql (4.6K) 0회 다운로드 2024-02-18 20:15:13

본문

SQL 파일 첨부합니다.


<?php
include("conn.php");
#########input/edit example~~
echo "<form><div><select name=selects><option value=default selected disabled>선택</option>";
$board_sql="select * from `table`";
$board_result=mysqli_query($conn,$board_sql);
while($board=mysqli_fetch_assoc($board_result)) {
$tableidx=stripslashes($board['tableidx']);
$number=stripslashes($board['number']);
$title=stripslashes($board['title']);
$hit=stripslashes($board['hit']);
$title=stripslashes($board['title']);
$write=stripslashes($board['write']);
$day=stripslashes($board['day']);
$boardid=stripslashes($board['boardid']);
$tablecate_sql="select * from  `board-category` where `tableid` like '$boardid'";
$tablecate_result=mysqli_query($conn,$tablecate_sql);
$tablecate_total=mysqli_num_rows($tablecate_result);
//if(tablecate_total < 1 ) {}
//else {
while($cnscate=mysqli_fetch_assoc($tablecate_result)) {
$cateid=stripslashes($cnscate['cateid']);
$catename=stripslashes($cnscate['catename']);
echo "<option value=$cateid >$catename</option><input type=text name=test size=50 maxlength=50 value=abc><input type=submit value=posting></form></div>";}
}
?>
추천
0

댓글 0개

전체 5,355
개발자팁 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT