:::MySQL::::::::::::::::::::::::: Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp.
C:\Documents and Settings\Administrator>cd..
C:\Documents and Settings>cd..
C:\>cd \mysql -u apple -p ÁöÁ¤µÈ °æ·Î¸¦ ãÀ» ¼ö ¾ø½À´Ï´Ù.
C:\>cd \mysql -u root -p ÁöÁ¤µÈ °æ·Î¸¦ ãÀ» ¼ö ¾ø½À´Ï´Ù.
C:\>cd \mysql -u root -p ÁöÁ¤µÈ °æ·Î¸¦ ãÀ» ¼ö ¾ø½À´Ï´Ù.
C:\>mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 7 to server version: 4.0.22-nt
Type help; or \h for help. Type \c to clear the buffer.
mysql> mysql> mysql> mysql> mysql>
mysql> create database appledb; Query OK, 1 row affected (0.09 sec)
mysql> grant all on appledb. * to apple@localhost identified by 1234; Query OK, 0 rows affected (0.16 sec)
mysql> exit Bye
C:\>mysql -u apple -p Enter password: **** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 8 to server version: 4.0.22-nt
Type help; or \h for help. Type \c to clear the buffer.
mysql> c
:::¸Þ¸ðÀåÀÛ¾÷¼Ò½º-¼öÁ¤::::::::::::::::::::::::::: ---¸Þ¸ðÀ帮½ºÆ®-------------------------------- ***memolist.html
¹øÈ£ |
À̸§ |
À̸ÞÀÏ |
¸Þ¸ð |
¼öÁ¤ |
include connect.php; $query=select * from mymemo; $result=mysql_query($query,$connect); while($row=mysql_fetch_row($result)){ echo
$row[0] |
$row[1] |
$row[2] |
$row[3] |
¼öÁ¤ | ; } ?>
¸Þ¸ðÀÔ·Â
---¼öÁ¤----------------------------------- ***memodifry.html
echo ³Ñ¾î¿Â ±Û¹øÈ£ --- $num ; include connect.php; $query=select * from mymemo where num=$num\; $result=mysql_query($query,$connect); $row=mysql_fetch_array($result); ?>
---ÀÔ·Â---------------------------- ***memoinput.html
---DB¿¬°á-------------------------- ***connect.php
$connect=mysql_connect(localhost,apple,1234); $db=mysql_select_db(appledb,$connect); ?> ::::::::::::::::::::::::::::::::::::::::::::
PHP ½ºÅ͵ð 2004 11 26
ÀÚ¼¼È÷º¸±â: http://www.6VJ.com/php/php1126.txt http://www.6VJ.com/php/php1126.html
*** ¸Þ¸ðÀåÃÑÁ¤¸®(ù°³¯ ~ ¿©¼¸Â°³¯):
http://www.6VJ.com/php/php1127point.txt (¿¡·¯°¡ ½ÉÇÏ¸é ¼Ò½ºº¸±â·ÎÇÏ¿© °ü·Ã³»¿ëÀ» ±ú²ýÈ÷ º¼¼öÀÖ½À´Ï´Ù.)
http://www.6VJ.com/php/php1127point.html
|