»ùÓÚphpµÄÊÖ»úÏúÊÛÍøÕ¾µÄÉè¼ÆÓëʵÏÖ__´óѧ±ÏÒµÂÛÎÄÉè¼Æ

±ÏÒµÉè¼Æ£¨ÂÛÎÄ£©

ÌâÄ¿£º»ùÓÚPHPµÄÊÖ»úÏúÊÛÍøÕ¾µÄÉè¼ÆÓëʵÏÖ

1

´óѧ±ÏÒµÉè¼Æ£¨ÂÛÎÄ£©ÈÎÎñÊé

ѧԺ£¨Ö±Êôϵ£©£ºÔºµç×ÓÐÅÏ¢¹¤³Ìϵ ʱ¼ä£º2014 Äê4 ÔÂ15ÈÕ Ñ§ Éú ÐÕ Ãû Éè¼Æ£¨ÂÛÎÄ£©ÌâÄ¿ Ö¸ µ¼ ½Ì ʦ »ùÓÚPHPµÄÊÖ»úÏúÊÛÍøÕ¾µÄÉè¼ÆÓëʵÏÖ µ÷²é¸÷´óÍøÉÏÊÖ»úÏúÊÛÉ̳ǣ¨ÈçÑÇÂíÑ·£¬¾©¶«µÈ£©µÄʹÓÃÇé¿ö Ö÷ÒªÑÐ Ñо¿¿ÉÐеÄÍøÉÏÊÖ»úÏúÊÛÉ̳¡µÄ·½°¸ ¾¿ÄÚÈÝ Ñо¿¿ª·¢ÍøÉÏÊÖ»úÏúÊ۵ĺËÐļ¼ÊõÊֶΠ·ÖÎö¿ª·¢¹ý³ÌÖкËÐÄÄ£¿é Ñо¿·½·¨ ·Ö²½Öè½â¾ö¿ª·¢¹ý³ÌÖÐÓöµ½µÄÎÊÌâ ͨ¹ý¸÷ÖÖ;¾¶ÐèÕÒ¾ö¾ø·½·¨ Ö÷Òª¼¼ÊõÖ÷Òª¼¼Êõ£ºPHP¡¢MySQLÊý¾Ý¿â¡¢SMARTYÄ£°å¡¢HTML5¡¢JSµÈ Ö¸±ê(»òÑÐÑо¿Ä¿±ê£º¿ª·¢³öʵÓᢸßЧµÄϵͳ ¾¿Ä¿±ê) [1] ÉÛìÏ. PHPºÍMySQL WEB¿ª·¢[M].±±¾©£º»úе¹¤Òµ³ö°æÉ磬2005¡£ Ö÷Òª²Î¿¼ÎÄÏ× [2] DAVID LANE[ÃÀ].PHP & MySQL WEBÊý¾Ý¿âÓ¦Óÿª·¢Ö¸ÄÏ[M].ÄϾ©£º¶«ÄÏ´óѧ³ö°æÉ磬2006¡£ [3] MIHAI BUCICA[ÃÀ].AJAXÓëPHP WEB¿ª·¢[M].±±¾©£ºÈËÃñÓʵç³ö°æÉ磬2007¡£ 2

»ùÓÚPHPµÄÊÖ»úÏúÊÛÍøÕ¾µÄÉè¼ÆÓëʵÏÖ

ÕªÒª

½üÄêÀ´£¬Ëæ×ÅInternetµÄѸËÙáÈÆ𣬻¥ÁªÍøÒÑÈÕÒæ³ÉΪÊÕ¼¯ÌṩÐÅÏ¢µÄ×î¼ÑÇþµÀ²¢Öð²½½øÈ봫ͳµÄÁ÷ͨÁìÓò¡£ÓÚÊǵç×ÓÉÌÎñ¿ªÊ¼Á÷ÐÐÆðÀ´£¬Ô½À´Ô½¶àµÄÉ̼ÒÔÚÍøÉϽ¨ÆðÔÚÏßÉ̵꣬ÏòÏû·ÑÕßչʾ³öÒ»ÖÖÐÂÓ±µÄ¹ºÎïÀíÄî¡£

ÍøÉϹºÎïÉ̳Ç×÷Ϊµç×ÓÉÌÎñÆäÖÐÒ»ÖÖ±íÏÖÐÎʽÔÚÎÒ¹úÓÐÁË·ÉËٵķ¢Õ¹£¬¾ßÓÐÒ»¶¨µÄÓÅÊÆ£¬µ«ÈÔ´æÔÚÐí¶àÎÊÌâ¡£±¾ÎÄÖ÷Òª·ÖÎöÁËÍøÉÏÉ̳ǵÄ×é³ÉÇé¿ö£¬Öصã½éÉÜÁËÍøվǰ̨¹¦ÄÜÄ£¿éµÄÏêϸ˼·ºÍʵÏÖ·½·¨£¬ÒÔ¼°¶Ôºǫ́Êý¾Ý¿â¹Ø¼ü¼¼ÊõºÍ²¿·ÖÔ´´úÂëµÄÏêϸ˵Ã÷¡£¸ÃϵͳÖ÷ÒªÓÃSMARTYÄ£°åÒýÇ棬·ÖÀëÁËPHPÂß¼­´úÂëºÍÍâÔÚHTML+CSSÄÚÈÝ£¬Ê¹³ÌÐòÔ±¸Ä±ä³ÌÐòµÄÂß¼­ÄÚÈݲ»»áÓ°Ï쵽ǰ¶ËµÄÒ³ÃæÉè¼Æ£¬Ç°¶ËÖØÐÂÐÞ¸ÄÒ³Ãæ²»»áÓ°Ïìµ½³ÌÐòµÄ³ÌÐòÂß¼­£¬´ó·ù¶ÈÌá¸ßÁ˹ºÎïÉ̳ǵÄÔËÐÐËٶȡ£±¾ÊÖ»úÏúÊÛÍøվʵÏÖÁËÓû§×¢²á¡¢µÇ¼¡¢ÉÌÆ·ä¯ÀÀºÍ²éѯ¡¢¶ÔÉÌÆ·µÄ¹ºÂòʹÓùºÎï³µÒÔ¼°Óû§¶©µ¥µÄÉú³ÉµÈһϵÁй¦ÄÜ¡£ ¹Ø¼ü´Ê£º ÊÖ»úÏúÊÛÍøÕ¾£¬ PHP£¬ MySQL

I

The Mobile phone sales website Based On PHP

Abstract

In recent years, with the rapid rise of the Internet, the Internet has increasingly to be the best channel to collect information and gradually entered the traditional circulation field.So the electronic commerce became popular, more and more businesses built on the Internet online store, to consumer shows a kind of new shopping concept.

Online mall as one kind of expression form in e-commerce have a rapid development in our country, has a certain advantage, but there are still many problems.This article mainly analyzes the composition of online mall, focus on site at the front desk function module of thinking and implementation method in detail, and the key technology of background database and part of the source code.The system mainly USES the smarty template engine, separates the logic code, and the content of external HTML + CSS, PHP programmer change the program logic and content will not affect the front page design, front-end to modify the page will not affect the program's logic, greatly improve the running speed of the shopping mall.This mobile phone sales website realizes user register, login, browse and query of commodity, to use the shopping cart and user purchases of goods orders, the production of a series of functions such as. Key Words: Mobile phone sales,PHP,MySQL

II

Ŀ ¼

µÚ1Õ Ð÷ÂÛ ................................................................. 1 µÚ2Õ ϵͳÐèÇó·ÖÎö ......................................................... 2

2.1 ϵͳÐèÇó·ÖÎö ........................................................ 2

2.1.1 ³õ²½µ÷²é ....................................................... 2 2.1.2 Óû§ÐèÇó·ÖÎö ................................................... 2 2.2 ϵͳ¿ÉÐÐÐÔ·ÖÎö ...................................................... 2

2.2.1¾­¼Ã¿ÉÐÐÐÔ ..................................................... 2 2.2.2¼¼Êõ¿ÉÐÐÐÔ ..................................................... 3 2.2.3²Ù×÷¿ÉÐÐÐÔ ..................................................... 3

µÚ3Õ ϵͳ¸ÅÊö ............................................................. 4

3.1 ϵͳµÄ¿ª·¢Ä¿±êÓëÒâÒå ................................................ 4 3.2ϵͳµÄ¹¦ÄܸÅÊö ....................................................... 4 µÚ4Õ ϵͳµÄ¿ª·¢»·¾³¼°Ïà¹Ø¼¼Êõ ............................................. 5

4.1 ϵͳµÄ¿ª·¢»·¾³ ...................................................... 5 4.2 ϵͳµÄÏà¹Ø¼¼Êõ¼ò½é .................................................. 5

4.2.1 MySQLÊý¾Ý¿â½éÉÜ ............................................... 5 4.2.2 PHP¼¼Êõ½éÉÜ ................................................... 6 4.2.3 HTML+CSS½éÉÜ .................................................. 7 4.2.4 Javascript½éÉÜ ................................................ 9

µÚ5Õ ϵͳµÄÉè¼ÆÓëʵÏÖ .................................................... 11

5.1 ϵͳµÄ¹¦ÄÜÄ£¿é ..................................................... 11 5.2 ¹¦ÄÜÄ£¿éÁ÷³Ìͼ ..................................................... 12 5.3 ºǫ́Êý¾Ý¿âÉè¼Æ ..................................................... 14

III

ÁªÏµ¿Í·þ£º779662525#qq.com(#Ì滻Ϊ@) ËÕICP±¸20003344ºÅ-4