piadream

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

· 2024-02-18 (일) 20:15:13 · 1535

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
|
댓글을 작성하시려면 로그인이 필요합니다.

개발자팁

5,403건

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

+
분류 제목 글쓴이 날짜 조회
PHP 24-06-30 조회 1,243
jQuery 24-06-19 조회 1,272
PHP 24-05-27 조회 1,713
Mobile 24-05-21 조회 1,390
기타 24-05-11 조회 1,223
23-10-30 조회 2,140
기타 23-10-24 조회 2,660
23-12-19 조회 1,672
24-01-10 조회 1,692
24-01-10 조회 1,675
24-01-15 조회 1,446
24-02-09 조회 5,086
24-02-16 조회 2,508
24-02-16 조회 2,611
24-02-18 조회 3,502
24-02-22 조회 3,272
24-02-25 조회 4,365
24-03-09 조회 2,460
JavaScript 24-02-26 조회 1,444
OS 24-02-25 조회 1,488
PHP 24-02-23 조회 1,652
PHP 24-02-18 조회 1,536
PHP 24-02-17 조회 1,454
PHP 24-02-16 조회 1,579
PHP 24-02-05 조회 1,597
JavaScript 24-01-28 조회 1,440
PHP 24-01-28 조회 1,380
PHP 24-01-27 조회 1,347
PHP 24-01-27 조회 1,475
PHP 24-01-27 조회 1,441