微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

PHP开发制作一个简单的活动日程表Calendar

材料取之深入PHP与JQuery开发,这本书实际上就是讲述一个活动日程表。

文章适合从其它语言(如java,C++,python等)转到PHP,没有系统学习PHP,或者是PHP初学者,已经对程序有较深理解的朋友

以上为文件目录结构,public为程序根目录,目的是为了安全方面的考虑,把核心程序放在外界访问不到的地方。

本地的演示地址为:PHP

首先是数据库的脚本:

rush:sql;"> /*

Navicat MysqL Data Transfer

Source Server : localhost_3306

Source Server Version : 50130

Source Host : 127.0.0.1:3306

Source Database : PHP-jquery_example

Target Server Type : MysqL

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.jb51.cc/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第二篇,请nofollow" target="_blank" href="http://www.cnblogs.com/luhouxiang/p/5598978.html">点击。

内容,希望对大家的学习有所帮助,也希望大家多多支持编程之家。

原文地址:https://www.jb51.cc/php/19520.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐