게시판별 카테고리 만들기.
SQL 파일 첨부합니다.
[code]
<?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>";}
}
?>
[/code]
게시판 목록
개발자팁
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 5006 | 기타 | 5년 전 | 1920 | ||
| 5005 | 기타 | 5년 전 | 2019 | ||
| 5004 | 기타 | 5년 전 | 2135 | ||
| 5003 | 기타 | 5년 전 | 2809 | ||
| 5002 | 기타 | 5년 전 | 2385 | ||
| 5001 | 기타 | 5년 전 | 2720 | ||
| 5000 | 기타 | 5년 전 | 4766 | ||
| 4999 | 기타 | 5년 전 | 2028 | ||
| 4998 | 기타 | 5년 전 | 2691 | ||
| 4997 | 기타 | 5년 전 | 2739 | ||
| 4996 | 기타 | 5년 전 | 2665 | ||
| 4995 | 기타 | 5년 전 | 2912 | ||
| 4994 | 기타 | 5년 전 | 2166 | ||
| 4993 | 기타 | 5년 전 | 2039 | ||
| 4992 | 기타 | 5년 전 | 1967 | ||
| 4991 | 기타 | 5년 전 | 1981 | ||
| 4990 | 기타 | 5년 전 | 2042 | ||
| 4989 | 기타 | 5년 전 | 2362 | ||
| 4988 | 기타 | 5년 전 | 2052 | ||
| 4987 | 기타 | 5년 전 | 2325 | ||
| 4986 | 기타 | 5년 전 | 2799 | ||
| 4985 | 웹서버 | 5년 전 | 4943 | ||
| 4984 | OS | 5년 전 | 3008 | ||
| 4983 | MySQL | 5년 전 | 2893 | ||
| 4982 | 기타 | 5년 전 | 2010 | ||
| 4981 | PHP | 5년 전 | 2653 | ||
| 4980 | 기타 | 5년 전 | 8972 | ||
| 4979 | 웹서버 | 5년 전 | 3074 | ||
| 4978 | 기타 | 5년 전 | 2050 | ||
| 4977 | PHP | 5년 전 | 3514 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기