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">点击。

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

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...