The material is in the depth of PHP and jquery, and this book is actually about a calendar of events.
This article is suitable for the transfer from other languages (such as Java,c++,python, etc.) to PHP, no system to learn PHP, or PHP beginners, has a deeper understanding of the program of Friends
The above is the file directory structure, public is the program root directory, the purpose is to security considerations, the core program in the outside access to the place.
The local demo address is:http://localhost/index.php
The first is the database script:
/*navicat MySQL Data Transfer Source server:localhost_3306source Server version:50130source HOST:127.0.0.1:3306SOURC E database:php-jquery_example Target Server type:mysqltarget server Version:50130file encoding:65001 date:2016-06 -19 16:54:29*/create DATABASEIFNot EXISTS ' php-jquery_example 'DEFAULTCHARACTER SET UTF8 COLLATE utf8_unicode_ci;SPAN style= "Color:rgb (0, 128, 0); >SPAN style= "Color:rgb (0, 128, 0); >SPAN style= "Color:rgb (0, 128, 0); >set foreign_key_checks=0;--------------------------------Table structure forEvents------------------------------DROP TABLEIFEXISTS ' Events ';SPAN style= "Color:rgb (0, 128, 0); >create TABLE ' Events ' (' event_id ' int (one) not NULL auto_increment, ' event_title ' varchar COLLATE utf8_unicode_ciDEFAULTNULL, ' Event_desc ' text COLLATE utf8_unicode_ci, ' event_start ' timestamp not NULLDEFAULT' 0000-00-00 00:00:00 ', ' event_end ' timestamp not NULLDEFAULT' 0000-00-00 00:00:00 ', PRIMARY key (' event_id '), key ' Event_start ' (' Event_start ')) Engine=myisam auto_increment=3DEFAULTCharset=utf8 Collate=utf8_unicode_ci;SPAN style= "Color:rgb (0, 128, 0); >SPAN style= "Color:rgb (0, 128, 0); >--------------------------------Records of events------------------------------INSERT into ' Events ' VALUES (' 1 ', ' New year&; #039; s Day ', ' Happy New year! ', ' 2010-01-01 00:00:00 ', ' 2010-01-01 23:59:59 ');INSERT into ' Events ' VALUES (' 2 ', ' Last day's January ', ' last day of the month! yay! ', ' 2010-01-31 00:00:00 ', ' 2010-01-31 23:59:59 ');
PHP Development to create a simple event Calendar calendar second, please click.
The above is the whole content of this article, I hope that everyone's learning has helped, but also hope that we support the script home.