묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
소스 분석좀..
2005.08.10 21:55
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<script language="javascript">
<!--
function textarea_size(obj) {
obj.rows += 3;
//resizeTo(,400)
}
-->
</script>
<style><!--
A:link { color: #ababab; text-decoration:none; }
A:visited { color: #ababab; text-decoration:none; }
A:active { color: #ababab; text-decoration:none; }
A:hover { color: #ababab; text-decoration:underline; } -->
</style>
<script language='JavaScript'>
function newOpen(url) {
window.open(url,'cnjOpen','resizable=1,scrollbars=1,status=0,width=820,height=200');
}
</script>
<title>QnA 지식KIN </title>
<table border="0" cellpadding="0" cellspacing="0" width="800">
<tr>
<td colspan="3" width="800" height="32">
</font></span><span style="font-size:9pt;"><font color="#ABABAB"><br> - 이 페이지는 누구나 질문하고 답변 할 수 있도록 만들어진 오픈 데이터베이스 프로젝트입니다.</span></font>
</td>
</tr>
<form name=db_project action=index.php method="post">
<tr>
<td width="80" valign="top">
<p> </p>
</td>
<td width="620"> </td>
<td width="80"> </td>
</tr>
<tr>
<td width="80" valign="top" height="77">
<p align="center" style="margin-top:5; cursor:hand;" onclick="textarea_size(document.form.ask)"><span style="font-size:9pt;"><font color="#ABABAB">질문 내용 :<br><span style="font-size:8pt;">(늘이기)</span></font></span></p>
</td>
<td width="620" valign="top" height="77">
<textarea name=ask rows="4" cols="89" style="color:rgb(72,118,118); border-width:1; border-color:rgb(38,118,145); border-style:solid;"></textarea></td>
<td width="80" valign="top" height="77">
<p align="center" style="margin-top:5;"> <input type="submit" name="button" value="등록"></form>
</p>
</td>
</tr>
<tr>
<td width="80" height="33">
<p align="center"><span style="font-size:9pt;"><font color="#ABABAB">총 db수 </font></span>
<td width="620" height="33"><span style="font-size:9pt;"><font color="#ABABAB"> </font></span></td>
<td width="80" height="33"> </td>
</tr>
<?php // 수정 시작
$host_name = "localhost";
$user_name = "아이디";
$user_password = "비번";
$db_name = "db"; //수정끝
$connect = mysql_connect("$host_name","$user_name","$user_password");
mysql_select_db("$db_name");
$que = "INSERT INTO qna VALUES (
'$ask',
'',
''
)";
mysql_query($que , $connect);
$data = "SELECT * FROM qna";
mysql_query( $quee , $connect);
for($i = 0; $i < $total; $i++)
{
mysql_data_seek($data,$i);
$human = mysql_fetch_array( $data );
?>
<?
echo "나 $human[num]";
}
?>
이소스 분석좀..해주세요
<script language="javascript">
<!--
function textarea_size(obj) {
obj.rows += 3;
//resizeTo(,400)
}
-->
</script>
<style><!--
A:link { color: #ababab; text-decoration:none; }
A:visited { color: #ababab; text-decoration:none; }
A:active { color: #ababab; text-decoration:none; }
A:hover { color: #ababab; text-decoration:underline; } -->
</style>
<script language='JavaScript'>
function newOpen(url) {
window.open(url,'cnjOpen','resizable=1,scrollbars=1,status=0,width=820,height=200');
}
</script>
<title>QnA 지식KIN </title>
<table border="0" cellpadding="0" cellspacing="0" width="800">
<tr>
<td colspan="3" width="800" height="32">
</font></span><span style="font-size:9pt;"><font color="#ABABAB"><br> - 이 페이지는 누구나 질문하고 답변 할 수 있도록 만들어진 오픈 데이터베이스 프로젝트입니다.</span></font>
</td>
</tr>
<form name=db_project action=index.php method="post">
<tr>
<td width="80" valign="top">
<p> </p>
</td>
<td width="620"> </td>
<td width="80"> </td>
</tr>
<tr>
<td width="80" valign="top" height="77">
<p align="center" style="margin-top:5; cursor:hand;" onclick="textarea_size(document.form.ask)"><span style="font-size:9pt;"><font color="#ABABAB">질문 내용 :<br><span style="font-size:8pt;">(늘이기)</span></font></span></p>
</td>
<td width="620" valign="top" height="77">
<textarea name=ask rows="4" cols="89" style="color:rgb(72,118,118); border-width:1; border-color:rgb(38,118,145); border-style:solid;"></textarea></td>
<td width="80" valign="top" height="77">
<p align="center" style="margin-top:5;"> <input type="submit" name="button" value="등록"></form>
</p>
</td>
</tr>
<tr>
<td width="80" height="33">
<p align="center"><span style="font-size:9pt;"><font color="#ABABAB">총 db수 </font></span>
<td width="620" height="33"><span style="font-size:9pt;"><font color="#ABABAB"> </font></span></td>
<td width="80" height="33"> </td>
</tr>
<?php // 수정 시작
$host_name = "localhost";
$user_name = "아이디";
$user_password = "비번";
$db_name = "db"; //수정끝
$connect = mysql_connect("$host_name","$user_name","$user_password");
mysql_select_db("$db_name");
$que = "INSERT INTO qna VALUES (
'$ask',
'',
''
)";
mysql_query($que , $connect);
$data = "SELECT * FROM qna";
mysql_query( $quee , $connect);
for($i = 0; $i < $total; $i++)
{
mysql_data_seek($data,$i);
$human = mysql_fetch_array( $data );
?>
<?
echo "나 $human[num]";
}
?>
이소스 분석좀..해주세요
댓글 0
글쓴이 | 제목 | 최종 글 |
---|---|---|
XE | 공지 글 쓰기,삭제 운영방식 변경 공지 [16] | 2019.03.05 by 남기남 |
두바이 | .. [1] | 2013.12.04 by 송동우 |
두바이 | Extravar.class.php 수정건 [2] | 2013.12.04 by 감로수 |
두바이 | kkk [1] | 2013.12.04 by 송동우 |
nado0124 | 관리자 페이지 접속통계와 카운터 위젯에 차이가 많이 납니다. | |
호스케치 | SSH 접속에서 이런 문구와 화면이 단순히 패스워드 입력 오류인가요? | |
라돌체 | 추천 후 특정 도메인으로 이동하기 | |
하여가 | <input 으로 얻은 정보를 submit으로 제출할때 | |
잭팟24 | 관리자 아이디 비번치면 존재하지않는 회원이라고 나옵니다 [1] | 2013.12.04 by 매실茶 |
Park''sTRADE | XE 공식 사이트 레이아웃에서 2차 메뉴 한번에 모두 나타나게 하는 방법 질문드립니다. | |
아이구머리 | 이미지가 x박스뜨는건 어떤문제인가요? [1] | 2013.12.04 by explode |
명품전문가 | xe 초보자 입니다. [1] | 2013.12.04 by explode |
치즈도둑 | 고수님들 홈페이지가 이상해졌어요 도와주세요 [1] | 2013.12.04 by explode |
bonui | 코어 업그레이드 질문 [1] | 2013.12.04 by 하늘(skycheer) |
생까는즐거움 | 쓰기버턴을 이름을 바꾸고 싶어요 ㅠㅠ [1] | 2013.12.04 by 오르막 |
캡증 | Contect위젯 질문 [1] | 2013.12.04 by explode |
아오e소라 | 해외 사용자를 차단했는데요. ㅠ [1] | 2013.12.04 by explode |
나미요이떼 | 갑자기 관리자 로그인이 안되요....;; [1] | 2013.12.04 by explode |
라돌체 | 리스트에서 사용자 정의 값 가져오기 질문드립니다. | |
벨몽이 | 글쓰고 나서 쓴 글이 뜨게 하는법좀.. 그냥 목록이 나오네요 | |
alljoy | 레이아웃의 사용자정의 메뉴? [2] | 2013.12.03 by 콩치 |