piadream

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

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]

첨부파일

structure.sql (4.6 KB) 4회 2024-02-18 20:15
|
댓글을 작성하시려면 로그인이 필요합니다. 로그인

개발자팁

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

+
분류 제목 글쓴이 날짜 조회
2년 전 조회 1,012
2년 전 조회 1,036
2년 전 조회 950
2년 전 조회 779
1년 전 조회 4,002
1년 전 조회 1,759
1년 전 조회 1,391
1년 전 조회 2,741
1년 전 조회 2,556
1년 전 조회 3,735
1년 전 조회 1,662
JavaScript 1년 전 조회 765
OS 1년 전 조회 836
PHP 1년 전 조회 965
PHP 1년 전 조회 859
PHP 1년 전 조회 731
PHP 1년 전 조회 833
PHP 1년 전 조회 852
JavaScript 1년 전 조회 748
PHP 1년 전 조회 688
PHP 1년 전 조회 647
PHP 1년 전 조회 769
PHP 1년 전 조회 729
PHP 2년 전 조회 831
정규표현식 2년 전 조회 722
JavaScript 2년 전 조회 760
PHP 2년 전 조회 2,219
PHP 2년 전 조회 1,698
PHP 2년 전 조회 731
node.js 2년 전 조회 1,546
🐛 버그신고