게시판별 카테고리 만들기.
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]
게시글 목록
| 번호 | 제목 |
|---|---|
| 16893 | |
| 16890 |
PHP
DB 세션 핸들링
2
|
| 16889 | |
| 16888 |
node.js
c++로 만들어진 코드를 바인딩하기
1
|
| 16887 |
node.js
express이용하여 간단하게 api 서버 만들기
1
|
| 16886 | |
| 16885 |
node.js
Mac os에서 nvm + node 설치편
|
| 16884 |
node.js
nvm설치 + nodejs 설치
|
| 16883 | |
| 16882 | |
| 16881 | |
| 16880 | |
| 16871 | |
| 16870 | |
| 16868 |
OS
opendkim 설치
|
| 16863 | |
| 16861 | |
| 16856 | |
| 16852 | |
| 16834 | |
| 16833 | |
| 16829 | |
| 16827 | |
| 16826 | |
| 16823 | |
| 16822 | |
| 16819 | |
| 16818 | |
| 16817 | |
| 16806 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기