2024 12 06
   
 
 
  
 
    ¹æ¼Û
    VJ
    ȨÆäÀÌÁö
    ÇÁ·Î±×·¥
    ³×Æ®¿öÅ©
    html
    JAVA
    C¾ð¾î
    µå¸²À§¹ö
    Ç÷¡½Ã
    Æ÷Åä¼¥
    ÀÏ·¯½ºÆ®
    PHP
    JSP
    XML
  - ºñµð¿ÀÀú³ÎÀÇ
    »ç»ó°ú öÇÐ

  - ¿î¿µÀÚ ÇÖ¶óÀÎ
  - ¹®ÀÇ»çÇ×
  - Á¦ ÈÞ

-¸ð¹ÙÀÏÀÎÅͳݹæ¼Û
-VJ(PD)
   ÀÎÅͳݰø°£

-VJ(PD)
   ÀÎÅͳݹæ¼Û

-½Ã¹ÎÁ¦ÀÛ
   ÀÎÅͳݹæ¼Û

-½Ã»ç NEWS
-VJ(PD),
   ±âÀÚ, ÀÛ°¡

-ÈÄ¿ø¼îÇθô¿î¿µ

- VJ ÀÎÅͳݰø°£
- VJ ³×Æ®¿öÅ©¿¬°á
- VJ Çùȸ±¸¼º
- VJ È«º¸
- Video
   Journalist

- VJ À̸ÞÀϼ­ºñ½º

- ¿ì¸®Ã£±â
- Ä£ÀÏÆÄÀû±ØÀûû»ê
- µ¶µµ/°í±¸·Á ã±â
- ³²ºÏÅëÀϱ¹È£
   ÀÌÁ¨Corea

- ÀÒ¾î¹ö¸°Á¤½Å
   36³â ÀÏÁ¦Ä§·«

- Á¶¼±500³â¿ÕÁ¶
   ºÎÈ°¿îµ¿

- »õ¸¶À»¿îµ¿
   ±¹°¡°¡Ä¡°ü
   (»ç»óÀÌ ÀÖ¾ú´Ù.)

- ½Ã¹Î¿îµ¿¿¬´ë
- ¸ð¹ÙÀÏ ¹æ¼Û

- ¿µ¹® ±¹Á¦
   ±¹³»µµ¸ÞÀÎ

- Çѱ۵µ¸ÞÀÎ
- ÇѱÛÅ°¿öµå
  * µµ¸ÞÀÎ ±âȹ *
°í°´ Áö¿ø ¼¾ÅÍ
¢Ï 02) 2202 - 1009  
ÆòÀÏ : 10:00 ~ 18:00  
ÁÖ¸» : 10:00 ~ 14:00  
ÈÞ¹« & ÈÞÀÏ(°øÈÞÀÏÆ÷ÇÔ)
¢½±ä±Þ»çÇ× :
Mobile : 010-3079-1009

HOME >> ±³À° >> [ PHP ]
¢Ã Á¦¸ñ : PHP - ½º¹°¹ø°³¯ (1216)
¢Ã ºÎÁ¦¸ñ : ȸ¿ø°¡ÀÔ - DBÀÛ¼º °ú php¼Ò½º·Î DB¿¬°á
 
PHP - ù°³¯ 1ÀÏ-11 19

PHP - µÑ°³¯ 2ÀÏ-11 22

PHP - ¼¼Â°³¯ (1123)

PHP - ³×°³¯ (1124)

PHP - ´Ù¼¸Â°³¯ (1125)

PHP - ¿©¼¸Â°³¯ (1126)

PHP - ÀÏ°ö°³¯ (1129+14½Ã°£)

PHP - ¿©´ú°³¯ (1130)

PHP - ¾Æȩ°³¯ (1201)

PHP - ¿­Â°³¯ (1202)

PHP - ¿­ÇÏ·ç°³¯ (1203)

PHP - ¿­µÑ°³¯ (1206)

PHP - ¿­¼¼Â°³¯ (1207)

PHP - ¿­³×°³¯ (1208)

PHP - ¿­´Ù¼¸Â°³¯ (1209)

PHP - ¿­¿©¼¸Â°³¯ (1210)

PHP - ¿­ÀÏ°ö°³¯ (1213)

PHP - ¿­¿©´ú°³¯ (1214)

PHP - ¿­¾Æȩ°³¯ (1215)

PHP - ½º¹°Çѹø¹ø°³¯ (1217)

PHP - ½º¹°µÎ¹ø°³¯ (1220)

PHP - ½º¹°µÎ¹ø°³¯ (2004/12/21)

PHP - ½º¹°¼¼¹ø°³¯ (2004/12/22)

PHP - ½º¹°³×¹ø°³¯ (2004/12/23)

PHP - ½º¹°³×¹ø°³¯ (2004/12/23)

PHP - ½º¹°´Ù¼¸¹ø°³¯ (2004/12/24)

PHP - ½º¹°¿©¼¸¹ø°³¯ (2004/12/26)

PHP - ½º¹°¿©´ú¹ø°³¯ (2004/12/28)

PHP - ½º¹°¿©´ú¹ø°³¯ (2004 12 28)

PHP - ½º¹°¾ÆÈ©¹ø°³¯ (2004 12 31)

PHP - ¼­¸¥µÎ¹ø°³¯ (2005 01 03)

PHP - ¼­¸¥¼¼¹ø°³¯ (2005 01 04)

PHP - ¼­¸¥³×¹ø°³¯ (2005 01 05)

PHP - ¼­¸¥´Ù¼¸¹ø°³¯ (2005 01 06)

PHP - ¼­¸¥¿©¼¸¹ø°³¯ (2005 01 07)

PHP - ¼­¸¥ÀÏ°ö¹ø°³¯ (2005 01 10)

PHP - ¼­¸¥¿©´ú¹ø°³¯ (2005 01 11)

PHP - ¼­¸¥¾ÆÈ©¹ø°³¯ (2005 01 12)

PHP - ¸¶Èç¹ø°³¯ (2005 01 13)

PHP - ¸¶ÈçÇѹø°³¯ (2005 01 14)

PHP - ¸¶ÈçµÎ¹ø°³¯ (2005 01 17)

PHP - ¸¶Èç¼¼¹ø°³¯ (2005 01 18)

PHP - ¸¶Èç³×¹ø°³¯ (2005 01 19)



PHP - ½º¹°¹ø°³¯ (1216)


ȸ¿ø°¡ÀÔ - DBÀÛ¼º °ú  php¼Ò½º·Î DB¿¬°á


 


 


Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.


C:\Documents and Settings\Administrator>mysql -u
mysql: option -u requires an argument


C:\Documents and Settings\Administrator>mysql -u root
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 14 to server version: 4.0.22-nt


Type help; or \h for help. Type \c to clear the buffer.


mysql> use appledb;
Database changed
mysql> show tables;
+-------------------+
| Tables_in_appledb |
+-------------------+
| aaa               |
| bd_02             |
| bd_3              |
| board             |
| board1            |
| member            |
| memo              |
| mymemo            |
+-------------------+
8 rows in set (0.00 sec)


mysql> desc member;
+----------+--------------+------+-----+---------+----------------+
| Field    | Type         | Null | Key | Default | Extra          |
+----------+--------------+------+-----+---------+----------------+
| num      | int(11)      |      | PRI | NULL    | auto_increment |
| userid   | varchar(20)  |      | UNI |         |                |
| userpass | varchar(20)  |      |     |         |                |
| question | varchar(150) |      |     |         |                |
| answer   | varchar(50)  |      |     |         |                |
| username | varchar(30)  |      |     |         |                |
| email    | varchar(50)  |      |     |         |                |
| jumin    | varchar(13)  |      |     |         |                |
| tel      | varchar(20)  |      |     |         |                |
| zip      | varchar(7)   |      |     |         |                |
| address  | varchar(50)  |      |     |         |                |
| job      | varchar(50)  |      |     |         |                |
| hobby    | varchar(50)  |      |     |         |                |
+----------+--------------+------+-----+---------+----------------+
13 rows in set (0.04 sec)


mysql>



*** index.html
<!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN>
<HTML>
<HEAD>
<TITLE> New Document </TITLE>


</HEAD>


<BODY>
 <table border=1 width=800>
  <tr>
   <td colspan=2><img src=http://www.pcall.co.kr/img/93.gif height=150></td>
  </tr>
  <tr>
   <td width=30% height=300 valign=top>


            <form method=post action=login.php>
    <table border=1 width=200>
     <tr>
      <td>¾ÆÀ̵ð</td>
      <td><input type=text name=username size=10></td>
     </tr>
     <tr>
      <td>ºñ¹Ð¹øÈ£</td>
      <td><input type=password name=userpass size=10></td>
     </tr>
     <tr>
      <td colspan=2 align=center>
      <input type=submit value=·Î±×ÀÎ></td>
     </tr>
    </table>
   </form>
   



   ¸Þ´º
   
   <br>   
   <a href=index.html?mode=home>óÀ½À¸·Î</a>
   <p>
   <a href=index.html?mode=join>ȸ¿ø°¡ÀÔ</a>
   <p>
   <a href=index.html?mode=board>°Ô½ÃÆÇ</a>
   <p>
   <a href=index.html?mode=memo>¸Þ¸ðÀå</a>
   <p>
   </td>
   <td align=center>


   ºä
   <?
    if(!$mode){
     $mode=home;
    }
    switch($mode){
     case home: include
ull.html;
     break;


     case oard: include ../board0/list.html;
     break;


     case memo: include ..memo/memolist.html;
     break;
     case join: include
egist.html;
     break;
     
    }
   ?>
   </td>
  </tr>
 </table>
</BODY>
</HTML>


***regist.html
<!--¾ÆÀ̵ð
ºñ¹Ð¹øÈ£
ºñ¹Ð¹øȣȮÀÎ
À̸§
À̸ÞÀÏ
ÁֹιøÈ£
ÀüÈ­¹øÈ£
ÁÖ¼Ò
ÇÚµåÆù
Á÷¾÷
Ãë¹Ì-->
<form method=post action=regist.php>
<form method=post action=regist.php>
<table border=1 width=500>
 <tr>
  <td>¾ÆÀ̵ð</td>
  <td><input type=text name=userid></td>
 </tr>
 <tr>
  <td>ºñ¹Ð¹øÈ£</td>
  <td><input type=password name=userpass1></td>
 </tr>
 <tr>
  <td>ºñ¹Ð¹øȣȮÀÎ</td>
  <td><input type=password name=userpass2></td>
 </tr>
 <tr>
  <td>ºñ¹Ð¹øÈ£ <br>ºÐ½Ç½ÃÁú¹®</td>
  <td><input type=text name=qusstion size=50></td>
 </tr>
 <tr>
  <td>Áú¹®´äº¯</td>
  <td><input type=text name=answer></td>
 </tr>
 <tr>
  <td>À̸§</td>
  <td><input type=text name=username></td>
 </tr>
 <tr>
  <td>À̸ÞÀÏ</td>
  <td><input type=text name=email></td>
 </tr>
 <tr>
  <td>ÁֹιøÈ£</td>
  <td><input type=text name=jumin1 size=6>-<input type=text name=jumin2 size=7></td>
 </tr>
 <tr>
  <td>ÀüÈ­¹øÈ£</td>
  <td><input type=text name=tell size=2>-<input type=text name=tel2 size=4>-<input type=text name=tel3 size=4></td>
 </tr>
 <tr>
  <td>¸ð¹ÙÀÏ</td>
  <td><input type=text name=userid></td>
 </tr>
 <tr>
  <td>¿ìÆí¹øÈ£</td>
  <td><input type=text name=zip1 size=3>-<input type=text name=zip2 size=3></td>
 </tr>
 <tr>
  <td>ÁÖ¼Ò</td>
  <td><input type=text name=address size=20></td>
 </tr>
 <tr>
  <td>Á÷¾÷</td>
  <td><input type=text name=job></td>
 </tr>
 <tr>
  <td>Ãë¹Ì</td>
  <td><input type=text name=hobby></td>
 </tr>
 <tr>
  <td colspan align=center>
  <input type=submit value=°¡ÀÔ>
  </td>
 </tr>
 


</table>
</form>


***regist.php
<?
//ÆÄÀϸí: memberdb.php
/*
¾ÆÀ̵ð : userid
ºñ¹Ð¹øÈ£: userpass
ºñ¹Ð¹øȣȮÀÎ:
ºñ¹Ð¹øÈ£Áú¹®:question
Áú¹®´äº¯: ansewr
À̸§: name
À̸ÞÀÏ : jumin
ÁֹιøÈ£: jumin
ÀüÈ­¹øÈ£ : tel
ÇÚµåÆù:
ÁÖ¼Ò: address
Á÷¾÷: job
Ãë¹Ì: hobby


*/


echo userid --- $userid<br>;
echo userpass --- $userpass1<br>;
echo question --- $question<br>;
echo answer --- $answer<br>;
echo username --- $username<br>;
echo email --- $email<br>;
$jumin=$jumin1 . $jumin2;
echo jumin --- $jumin<br>;
$tel=$tell . - . $tel2 . - . $tel3;
echo el --- %tel<br>;
$zip=$zip1 . - . $zip2;
echo zip --- $zip<br>;
echo address --- $address<br>;


$totaladdress=$zip . / . $address;


echo otaladdress --- $totaladdress<br>;
echo job --- $job<br>;
echo hobby --- $hobby<br>;


include connect.php;


$query=insert into member values(NULL, $userid,$userpass1,$question,$answer,$username,$email,$jumin,$tel,$zip,$totaladdress,$job,$hobby);


$resulut=mysql_query($query);


if($result){
 echo ÀԷ¼º°ø;
}else{
 echo ÀԷ½ÇÆÐ;
}
/*
$query=create table member(
 num int not null auto_increment primary key,
 userid varchar(20) not null unique,
 userpass varchar(20) not null ,
 question varchar(150) not null,
 answer varchar(50) not null,
 username varchar(30) not null,
 email varchar(50) not null,
 jumin varchar(13) not null,
 tel varchar(20) not null,
 zip varchar(7) not null,
 address varchar(50) not null,
 job varchar(50) not null,
 hobby varchar(50) not null);


$result=mysql_query($query);


if($result){
 echo Å×ÀÌºí »ý¼º ¼º°ø;
}else{
 echo Å×ÀÌºí »ý¼º ½ÇÆó;
}
*/
?>



***memberdb.php
<?
//ÆÄÀϸí: memberdb.php
/*
¾ÆÀ̵ð : userid
ºñ¹Ð¹øÈ£: userpass
ºñ¹Ð¹øȣȮÀÎ://
ºñ¹Ð¹øÈ£Áú¹®:question
Áú¹®´äº¯: ansewr
À̸§: username
À̸ÞÀÏ : email
ÁֹιøÈ£: jumin
ÀüÈ­¹øÈ£ : tel
ÇÚµåÆù://
¿ìÆí¹øÈ£: zip
ÁÖ¼Ò: address
Á÷¾÷: job
Ãë¹Ì: hobby


*/


/*
echo userid --- $userid<br>;
echo userpass --- $userpass1<br>;
echo question --- $question<br>;
echo answer --- $answer<br>;
echo email --- $email<br>;
$jumin=$jumin1 . $jumin<br>;
echo jumin --- $userpass1<br>;
$tel=$tell . - . $tel2 . - . $tel3;
echo el --- %tel<br>;
$zip=$zip1 . - . $zip2;
echo zip --- $zip<br>;
echo address --- $address<br>;
$totaladdress=$zip . /. $address;


echo job --- $job<br>;
echo hobby --- $hobby<br>;
*/
include connect.php;


$query=create table member(
 num int not null auto_increment primary key,
 userid varchar(20) not null unique,
 userpass varchar(20) not null ,
 question varchar(150) not null,
 answer varchar(50) not null,
 username varchar(30) not null,
 email varchar(50) not null,
 jumin varchar(13) not null,
 tel varchar(20) not null,
 zip varchar(7) not null,
 address varchar(50) not null,
 job varchar(50) not null,
 hobby varchar(50) not null);


$result=mysql_query($query)or die(mysql_error());


if($result){
 echo Å×ÀÌºí »ý¼º ¼º°ø;
}else{
 echo Å×ÀÌºí »ý¼º ½ÇÆó;
}


?>


 


2004   12   16   php½ºÅ͵ð


¼Ò½ºÀÚ¼¼Á¤È®ÇÏ°Ôº¸±â
http://www.6VJ.com/php/php1216.txt

Home| Á¤Ä¡| ±¹Á¦| »çȸ| °æÁ¦| ÈÞ¸Õ| ÀÚ¿¬| µ¿¹°| ¿ª»ç| ±â·Ï| °Ç°­| °úÇÐ| Àü½Ã| °¶·¯¸®| ¹Ú¹°°ü| ½ºÅ¸| °¡¼ö| ¹è¿ì| ÅÅ·±Æ®| ¸ðµ¨| µ¥ºß| ¹®ÀÎ| ¼­Àû| ¿¬±Ø| À½¾Ç| ¹Ì½½| ±³À° »ç´ÂÀ̾߱â | ¿µÈ­| ¾ð·Ð| ¿©Çà| Ã¥µ¿³×| Æ÷Åä°¶·¯¸®| e±â»ç´Â ³íÀïÁß ±¤ÁÖÀü³²| ´ë±¸°æºÏ| ÀüºÏÈñ¸Á| Àü³²µ¿ºÎ| ºÎ»ê°æ³²| ´ëÀüÃæ³²| ¹ÌÁÖ¼Ò½Ä| ¾Æ½Ã¾Æ| À¯·´ 6VJ-TV| ºñµð¿À Àú³Î¸®½ºÆ®(PD) ºñµð¿ÀÀú³Î¸®½º³×Æ®¿öÅ© ºñµð¿ÀÀú³Î¸®½ºÇùȸ ±âÀÚ¸¸µé±â | 6VJ°Ô½ÃÆÇ | °ø°³ÆíÁýȸÀÇ ¹æ¼ÛÆíÁýȸÀÇ
  6VJ ÀÌ¿ë ¾à°ü °³ÀÎÁ¤º¸ º¸È£Á¤Ã¥ ÀÎÅͳݾð·ÐÆíÁýȸÀÇ Contact Us    
  Copyright © 2003 by 6VJ.com All rights reserved [ºñµð¿ÀÀú³Î¸®½ºÆ® ³×Æ®¿öÅ© / À¥¸ÖƼĿ¹Â´ÏÄÉÀ̼Ç]
»ó È£: ºñµð¿ÀÀú³Î¸®½ºÆ®¡ºVJ¡»[õ±¹Ä¿¹Â´ÏÄÉÀ̼Ç]
°¨µ¶¡£ÀÌ ±â ¿ë     email: Lee@KY.co.kr
Àü±¹´ëÇ¥¹øÈ£: °í°´¼­ºñ½º-ÀüÁö¿ª
¢Ï1544¢¾0404
 
(4¶ûÇؿ䢾¿µ»ç¿µ»ç:2006.03.01~¼­ºñ½º¢Ñ¹æ¼ÛÁ¦ÀÛ ¹× ¹æ¼ÛÁ¦º¸)

¹æ¼Û: KBS MBC SBS CableTV
±¤°í: Business Product_CF AD
IT: WebProgram Design
BtoB: BusinessNetwork. WebBusinessConsulting
    ¸ð¹ÙÀÏ : 010 - 3079 - 1009   (050-2221-1009: Æò»ý¹øÈ£)
    ´ë Ç¥ :  02) 2202 - 1009   |  (050-2222-1009)
    ±â ȹ :  031) 709 - 1009   |  (050-2223-1009)
    Á¦ ÀÛ :  031) 707 - 1009   |  (050-2224-1009)
    ÆÑ ½º :  031) 702 - 1009   |  (050-2225-1009)
    ÆÑ ½º :  031) 758 - 1009   |  (050-2226-1009)
    ¢ÀÆò»ý¹øÈ£(050)´Â º¸¸§µ¿¾È(2007³â1¿ù16ÀÏ~) ½ÃÇè¹æ¼Û°ü°è·Î ¼­ºñ½º¿¡ È¥µ¿À» µå¸± ¼ö ÀÖÀ¸´Ï ÀÌ¿ëÇÏÁö ¸¶½Ã±æ ¹Ù¶ø´Ï´Ù.(Æò»ó½Ã¿¡´Â ÀϹÝÀüÈ­¿Í µ¿ÀÏÇÏ°Ô »ç¿ëµË´Ï´Ù.)
¿ì Æí: 463-839.°æ±âµµ ¼º³²½Ã ºÐ´ç±¸ ¾ßžµ¿526¹øÁö °æ³²¾ÆÆÄÆ®»ó°¡.ÄÄ¾Ø³Ý º¥Ã³¿ÀÇǽº 111È£ õ±¹Ä¿¹Â´ÏÄÉÀ̼Ç
¡¼ºñµð¿ÀÀú³Î¸®½ºÆ®-6VJ.com¡½ ºñµð¿ÀÀú³Î¸®½ºÆ® (ÇÁ¸®·»¼­ ÇÁ·Îµà¼­µéÀÇ ³×Æ®¿öÅ© À¥¸ÖƼĿ¹Â´ÏÄÉÀ̼Ç)
::::::: ¿ì¸®°¡ »ì¾Æ°¡´Â À̼¼»ó¿¡¼­ »ç¶û°ú Çູ ȤÀº ¹Ì¿ò°ú ½½ÇÄÀÌ Á¸ÀçÇÏ´Â À̼¼»óÀ» ¹Ù¶óº¼ ¼ö ÀÖ´Â ³»°¡ ÇöÀç ¼û½¬°í ÀÖ´Â µ¿¾È¿¡
Á¸ÀçÇÏ´Â ¼¼»ó°ú ´õºÒ¾î ¿ìÁÖ¼Ó¿¡ ¸ÕÁö¿Í °°ÀÌ µ¹°íµµ´Â À̼¼»óÀÌ Ãµ±¹ÀÔ´Ï´Ù. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::