脚本宝典收集整理的这篇文章主要介绍了PHP开发制作一个简单的活动日程表Calendar,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
材料取之深入PHP与jquery开发,这本书实际上就是讲述一个活动日程表。
此文章适合从其它语言(如java,C++,python等)转到PHP,没有系统学习PHP,或者是PHP初学者,已经对程序有较深理解的朋友
以上为文件目录结构,public为程序根目录,目的是为了安全方面的考虑,把核心程序放在外界访问不到的地方。
本地的演示地址为:PHP
首先是数据库的脚本:
<PRe class="brush:sql;"> /*Source Server : localhost_3306
Source Server Version : 50130
Source Host : 127.0.0.1:3306
Source Database : PHP-jquery_example
Target Server Version : 50130
File Encoding : 65001
Date: 2016-06-19 16:54:29
*/
CREATE DATABASE <SPAN style="color: rgb(0,255);">IF NOT EXISTS <a href="https://www.js-code.COM/tag/PHP/" target="_blank" class="keywords">PHP</a>-jquery_example
<SPAN style="color: rgb(0,255);">DEFAULT CHARACTER SET utf8
COLLATE utf8_unicode_ci<SPAN style="color: rgb(0,128,0);">;
SPAN style="color: rgb(0,0);">
SPAN style="color: rgb(0,0);">SET FOReiGN_KEY_CHECKS=0;
-- Table structure <SPAN style="color: rgb(0,255);">for events
DROP TABLE <SPAN style="color: rgb(0,255);">IF EXISTS events
<SPAN style="color: rgb(0,0);">CREATE TABLE events
(
event_id
int(11) NOT NULL AUTO_INCREMENT,event_tITle
vArchar(80) COLLATE utf8_unicode_ci <SPAN style="color: rgb(0,255);">DEFAULT NULL,event_desc
text COLLATE utf8_unicode_ci,event_start
timestamp NOT NULL <SPAN style="color: rgb(0,255);">DEFAULT '0000-00-00 00:00:00',event_end
timestamp NOT NULL <SPAN style="color: rgb(0,Primary KEY (event_id
),KEY event_start
(event_start
)
) ENginE=MyISAM AUTO_INCREMENT=3 <SPAN style="color: rgb(0,255);">DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci<SPAN style="color: rgb(0,0);">
SPAN style="color: rgb(0,0);">-- ----------------------------
-- Records of events
INSERT INTO events
VALUES ('1','New Year&<SPAN style="color: rgb(0,0);">;#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 of January','Last day of the month!Yay!','2010-01-31 00:00:00','2010-01-31 23:59:59')<SPAN style="color: rgb(0,0);">;
以上是脚本宝典为你收集整理的PHP开发制作一个简单的活动日程表Calendar全部内容,希望文章能够帮你解决PHP开发制作一个简单的活动日程表Calendar所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。