ÎÞ·¨ÔØÈë mysql À©Õ¹£¬Çë¼ì²é PHP ÅäÖ᡽â¾ö°ì·¨
PS:ÎÒ½ñÌìÅäÖà ·þÎñÆ÷µÄʱºò³öÏÖµÄÎÊÌâ¾ÍÊÇÕâ¸ö£¬µ«ÊÇÕÕ×Å·½·¨¶¼×öÁË£¬Ñ¾µÄ¡£¡£»¹ÊÇûÓ㬼«¶ÈÓôÃÆËÀ¡£¡£°¥¡£¡£¡£ÎÒÒ²²»ÖªµÀʲôÔÒòÄØ¡£¡£¿ÉÄܵÄÔÒò¶¼ÕÒ¹ýÁË¡£¡£ÓôÃÆ°¡`~
apache2+mysql+php5+phpmyadminÅäÖÃÎÊÌ⣺ÎÞ·¨¼ÓÈëmysqlÀ©Õ¹£¬Çë¼ì²éphpÅäÖÃ...
°²×°Íêapache2+mysql+php5ºó£¬°²×°phpmyadmin²¢ÅäÖúÃÒÔºó£¬ÔÚä¯ÀÀÆ÷µØÖ·¿òÊäÈ룺http://localhost/phpmyadmin/ ÏÔʾÈçÏÂÌáʾÐÅÏ¢:
-----------------------------------------------
ÎÞ·¨ÔØÈë mysql À©Õ¹£¬
Çë¼ì²é PHP ÅäÖÃ
Îĵµ
----------------------------------------------
½â¾ö°ì·¨:ÐÞ¸Ä "c:/windows/php.ini" ²éÕÒphp_mysql.dll ½«Ç°ÃæµÄ×¢ÊÍ·û";"È¥µô
È»ºó½« "php°²×°Ä¿Â¼/libmysql.dll" ºÍ "php°²×°Ä¿Â¼/ext/php_mysql.dll" ¸´ÖƵ½ "c:/windows/system32/" Ï ÖØÆôapache¼´¿É
ÁíÍ⣬µ±ÄãÔٴδò¿ªphpmyadminʱ£¬¿ÉÄÜ»áÌáʾ:
----------------------------------------------
ûÓз¢ÏÖ PHP µÄÀ©Õ¹ÉèÖÃmbstring£¬ ¶øµ±Ç°ÏµÍ³ºÃÏñÔÚʹÓÿí×Ö·û¼¯¡£Ã»ÓÐ mbstring À©Õ¹µÄ phpMyAdmin ²»ÄÜÕýȷʶ±ð×Ö·û´®£¬¿ÉÄܲúÉú²»¿ÉÒâÁϵĽá¹û.
----------------------------------------------
½â¾ö°ì·¨£¬ÐÞ¸Ä "c:/windows/php.ini" ²éÕÒextension=php_mbstring.dll È¥µôÇ°ÃæµÄ";"×¢ÊÍ·û£¬±£´æ¡£
È»ºó½« "php°²×°Ä¿Â¼/ext/php_mbstring.dll"¿½±´µ½ "c:/windows/system32" Ï£¬ ÖØÆôapache¼´¿É¡£
Ïà¹ØÎĵµ£º
Ê×ÏÈÕâ2¸öº¯Êý¶¼ÊǾßÓÐÌæ»»×Ö·û¹¦Äܵġ£µ«ÊÇstrtr±Èstr_replaceÐÔÄÜÉÏÒª¿é4±¶¡£¾ßÌåÇé¿öÇë¿´ÈçÏ·ֽ⣺
Ê×ÏÈÊÇstrtrº¯Êý£º
ʵÀý1£ºµ±
ÒÔÏÂΪÒýÓõÄÄÚÈÝ£º
<?php
//Õâ¸öʱºòÊä³öµÄΪbaicai¶ø²»ÊÇbai123cai,ÒòΪstr("pao")<strlen("bai123")
echo strtr("paocai!","pao","bai123");
?>
ʵÀý2£ºµ±±»Ìæ»»µÄÖ ......
pack/unpackµÄÃþ°å×Ö·û×Ö·ûº¬Òå
format ²ÎÊýµÄ¿ÉÄÜÖµ£º
a - NUL-padded string
A - SPACE-padded string
h - Hex string, low nibble first
H - Hex string, high nibble first
c - signed char
C - unsigned char
s - signed short (always 16 bit, machine byte order)
S - unsigned short (always 16 bi ......
inner joins 內Á¬½Ó½öÑ¡³öÁ½ÕűíÖл¥ÏàÆ¥ÅäµÄ¼Ç¼£®Òò´Ë£¬Õâ»áµ¼ÖÂÓÐʱÎÒÃÇÐèÒªµÄ¼Ç¼ûÓаüº¬½øÀ´¡£
Ϊ¸üºÃµÄÀí½âÕâ¸ö¸ÅÄÎÒÃǽéÉÜÁ½¸ö±í×÷ÑÝʾ¡£ËÕ¸ñÀ¼Òé»áÖеÄÕþµ³±í(party)ºÍÒéÔ±±í(msp)¡£
party(Co
de,Name,Leader)
Code: Õþµ³´úÂë
Name: Õþµ³Ãû³Æ
Leader: Õþµ³ÁìÐä
msp(Name,Party,Constituency ......
ÔÊÐíËùÓÐÖ÷»úÔ¶³Ì·ÃÎÊ
GRANT ALL PRIVILEGES ON *.* TO 'dba'@'%' IDENTIFIED BY 'dbapassword' WITH GRANT OPTION;
Ö¸¶¨Ö÷»ú¿ÉÔ¶³Ì
GRANT ALL PRIVILEGES ON *.* TO 'dba'@'192.168.0.100' IDENTIFIED BY 'dbapassword' WITH GRANT OPTION;
Ö¸¶¨È¨ÏÞ¿ªÔ¶³Ì
grant select,insert,update,delete on test.* to db ......
»ù´¡Ìâ
¡¡¡¡1.±íµ¥ÖÐ getÓëpostÌá½»·½·¨µÄÇø±ð?
¡¡¡¡´ð£ºgetÓû§¶Ë½«Êý¾Ý¼Óµ½URLºó£¬¸ñʽΪ”?×Ö¶Î1=ÊäÈëÊý¾Ý1&×Ö¶Î2=ÊäÈëÊý¾Ý2&..."¡£
¡¡¡¡ÓÉÓÚgetÌá½»²ÎÊýºó»áÔÚµØÖ·À¸ÖÐÏÔʾ³öÀ´£¬ËùÒÔ»á²úÉúÑÏÖصݲȫÎÊÌâ¡£
¡¡¡¡get´«ÊäµÄÊý¾ÝÁ¿Ð¡£¬get´«ÊäµÄÊý¾ÝÁ¿Ð¡£¬ÕâÖ÷ÒªÊÇÒòΪÊÜurl³¤¶ÈÏÞÖÆ;¶øpost¿ÉÒÔ´«Ê ......