Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

PHPºÍMySQL Web¿ª·¢ (Ô­ÊéµÚ4°æ) »úе¹¤Òµ

http://www.xhsd.com.cn/books/views.asp?plucode=711126281
Õâ±¾Êé±»³ÆΪPHPºÍMySQLµÄ“Ê¥¾­”£¬×Ðϸ¿´ÁËһϣ¬µÄÈ·Óкܶà¶Àµ½µÄµØ·½¡£
Ê×ÏÈ£¬ÄÚÈÝÃ÷È·Í»³ö¡£Õâ±¾ÊéµÄÄ¿µÄÊǶÔPHPºÍMySQL×öÉîÈëdz³öµÄ·ÖÎö£¬¶ÔÆäWebÓ¦ÓÃ×öÁ˽ÏÈ«ÃæµÄ²ûÊö£¬Àý×Ó¾­µäʵÓá£
Æä´Î£¬Ð¡£PHP5.3£¬MySQLµÄ´æ´¢¹ý³ÌºÍ´æ´¢ÒýÇ棬Ajax¼¼ÊõÓëWeb2.0£¬WebÓ¦ÓõݲȫÎÊÌâ……ÎÞÒ»²»Õ¹Ê¾×Åм¼Êõ¡£
µÚÈý£¬Ð´×÷ˮƽ½Ï¸ß¡£ÊéÖеĸÅÄî¼°Óï·¨½éÉܼܺòÁ·£¬Ê¾Àý×î¼Ñ£¬Óï¾ä¾«¶Ì£¬Ã¿½ÚµÄÄÚÈÝÒ²²»Ì«¶à¡£
µÚËÄ£¬¹á´©Èí¼þ¹¤³Ì˼Ï룬¼°×÷Õߵľ­Ñé¡£Á½Î»×÷Õ߶¼ÊǾ­Ñé·á¸»µÄ´ÓÒµÈËÔ±¡£
µÚÎ壬´úÂëʵÓá£ÉÔ×÷Ð޸ļ´¿ÉÖ±½ÓʹÓá£
µ±È»Õâ±¾ÊéÒ²Óв»×ãµÄµØ·½¡£
±¾ÊéµÄ¶ÁÕ߶ÔÏóÒªÇóÓÐÒ»¶¨µÄ¾­Ñ飬¶ÔÓÚÍêÈ«µÄ³õѧÕßÀ´Ëµ£¬¶ÁÆðÀ´¿ÉÄÜ»á±È½Ï³ÔÁ¦¡£ÁíÍâÕë¶Ô´óÐÍ»òµç×ÓÉÌÎñÀàÐÍWebÕ¾µãÓ¦Óã¬ÆäËû·½ÃæµÄÓ¦Óò»×ã¡£
¼Û¸ñÆ«¹ó£¬714Ò³£¬95Ôª¡£
¿ÉÒÔ½è¼øµÄµØ·½ÈçÏ¡£
Ê×ÏÈ£¬Ò»¶¨ÒªÇå³þµØ¸æË߶ÁÕߣ¬PHPºÍMySQLÊÇ×öʲôµÄ£¬¿ÉÒÔͨ¹ýÒ»¸öµäÐ͵ÄʵÀý˵Ã÷¡£
Æä´Î£¬ÒªÈöÁÕß¿ìËÙÈëÃÅ¡£
µÚÈý£¬ÊµÀýÒ»¶¨Òª·á¸»¡¢ÊµÓá£
µÚËÄ£¬Æª£¨Ê¹ÓÃPHP£¬Ê¹ÓÃMySQL£¬µç×ÓÉÌÎñÓ밲ȫÐÔ£¬£Ð£È£ÐµÄ¸ß¼¶¼¼Êõ£¬´´½¨ÊµÓõģУȣкͣͣù£Ó£Ñ£ÌÏîÄ¿£©
µÚÎ壬ÓÐЩ¶«Î÷ҪעÃ÷¶ÁÕßÐèÒª×Ô¼º¶¯ÊÖѧ¡£
¡¶£Ð£È£Ð¿ª·¢ÊµÕ½±¦µä¡·
½á¹¹£º»ù´¡ÖªÊ¶£ÜºËÐļ¼Êõ£Ü¸ß¼¶Ó¦ÓãÜÏîĿʵս
Ŀ¼£ºÍ»³öÏÔʾ“ʵս”£¬È硶£Ã£«£«±¦µä¡·Í»³öÏÔʾ“×ÛºÏʵÀý”
¡¶£Ð£È£Ð£«£Á£ê£á£ø¡¡£×£å£â¡¡£²£®£°¡¡±à³Ì¼¼ÊõÓëÏîÄ¿¿ª·¢´óÈ«¡·
Ŀ¼£ºÄ¿Â¼Öмӱ¾Õ¹ؼüÄÚÈÝ


Ïà¹ØÎĵµ£º

PHPÖ®session

sessionµÄ×÷ÓÃÓòÊÇÔÚÒ»´Î»á»°ÖÐÆð×÷Óã¬ËùÒÔÔÚÒ»´Î»á»°ÖУ¬¿ÉÒÔÓÃSessionÀ´´æ´¢±£´æËùÐèÒªµÄÖµ£¬ÈçʵÏÖ¹ºÎï³µ£¬¿Í»§ÊÇ·ñµÇ¼µÄÑéÖ¤µÈµÈ¡£ÔÚʹÓÃÇ°Ê×ÏÈÒª¿ªÆôsession
<?php 
session_start(); 
?> 
¿¼ÂÇÊÇ·ñ¿ÉдÈësession
<?php 
if (isset($_POST['userid'])){ 
$_SESSION[' ......

MySQL°²×°ºÍÅäÖÃ

    ×î½üµÄÏîÄ¿ÖÐʹÓÃÁËMySQLÊý¾Ý¿â£¬Ò»Ð©MySQLµÄÐÂÓû§ÔÚÅäÖÃʹÓÃʱ»¹ÓÐЩ²»¹»ÊìÁ·£¬ÌØÔڴ˼Ǽ£¬·½±ã¿ª·¢ÍŶÓʹÓ㬸ÃÎÄÕÂËùÉæ¼°ÄÚÈݾù¿ÉÒÔÔÚMySQL²Î¿¼ÊÖ²áµÚ¶þÕ“°²×°MySQL”ÖÐÕÒµ½¡£MySQL°²×°ºó×Ô´øÁËÓ¢ÎIJο¼ÊֲᣬҲ¿ÉÒÔÔÚhttp://dev.mysql.com/doc/refman/5.1/zh/index.html²é¿´ÖÐÎÄ°æ±¾£ ......

ij´ó¹«Ë¾µÄPHPÃæÊÔÌ⣨תÔØ×ÔPHP100£©

1. ÈçºÎÓÃphpµÄ»·¾³±äÁ¿µÃµ½Ò»¸öÍøÒ³µØÖ·µÄÄÚÈÝ£¿ipµØÖ·ÓÖÒªÔõÑùµÃµ½£¿
[php]
echo $_SERVER ['PHP_SELF'];
echo $_SERVER ['SERVER_ADDR'];
[/php]
2. ÇóÁ½¸öÈÕÆڵIJîÊý£¬ÀýÈç2007-2-5 ~ 2007-3-6 µÄÈÕÆÚ²îÊý
[php]
$begin=strtotime('2007-2-5');
$end=strtotime('2007-3-6');
echo ($end-$begin)/(24*3600);
[ ......

ѧϰPHP»¹ÊÇÓÎÏ·¿ª·¢£¿

¡¡¡¡ËµÊµÔڵģ¬ÏÖÔÚµÄweb¿ª·¢È·ÊµºÜ»ð£¬µ«×ܾõµÃ¶ÔÎÒÀ´ËµÃ»ÓÐʲôÎüÒýÁ¦¡£Ëµµ½µ×£¬²»¹ýÊÇ×ö¸öÍøÕ¾ÂÓÐʲôÒâ˼£¿¾ÍËã×ö¸öÌÔ±¦Íø£¬ËãºÜÅ£ÁË°É£¬ÄÇÓÖÔõôÑù£¬²»¹ý¾ÍÊÇʵÏÖһЩ½»»¥²Ù×÷µÄÍøÕ¾°ÕÁË£¬×ܾõµÃ£¬Ã»Óж¯Á¦¡£
¡¡¡¡Æäʵ£¬´ÓÄÚÐÄÉî´¦£¬»¹ÊǾõµÃ×öÓÎÏ·ºÜÓÐÒâ˼¡£ÍæÓÎÏ·¸üÓÐÒâ˼£¬×ö³öƯÁÁµÄÓÎϷЧ¹û²ÅÊǷdz£Ë§µÄ¡£¾¡¹ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ