材料取之深入php与jquery开发,这本书实际上就是讲述一个活动日程表。
此文章适合从其它语言(如java,c++,python等)转到php,没有系统学习php,或者是php初学者,已经对程序有较深理解的朋友
以上为文件目录结构,public为程序根目录,目的是为了安全方面的考虑,把核心程序放在外界访问不到的地方。
本地的演示地址为:http://localhost/index.php
首先是数据库的脚本:
/*
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, 0, 255);">if</span> not exists `php-jquery_example`
<span style="color: rgb(0, 0, 255);">default</span> character set utf8
collate utf8_unicode_ci<span style="color: rgb(0, 128, 0);">;</span>
span style="color: rgb(0, 128, 0);"> </span>
span style="color: rgb(0, 128, 0);"> </span>
span style="color: rgb(0, 128, 0);">set foreign_key_checks=0;</span>
-- ----------------------------
-- table structure <span style="color: rgb(0, 0, 255);">for</span> events
-- ----------------------------
drop table <span style="color: rgb(0, 0, 255);">if</span> exists `events`<span style="color: rgb(0, 128, 0);">;</span>
span style="color: rgb(0, 128, 0);">create table `events` (</span>
`event_id` int(11) not null auto_increment,
`event_title` varchar(80) collate utf8_unicode_ci <span style="color: rgb(0, 0, 255);">default</span> null,
`event_desc` text collate utf8_unicode_ci,
`event_start` timestamp not null <span style="color: rgb(0, 0, 255);">default</span> '0000-00-00 00:00:00',
`event_end` timestamp not null <span style="color: rgb(0, 0, 255);">default</span> '0000-00-00 00:00:00',
primary key (`event_id`),
key `event_start` (`event_start`)
) engine=myisam auto_increment=3 <span style="color: rgb(0, 0, 255);">default</span> charset=utf8 collate=utf8_unicode_ci<span style="color: rgb(0, 128, 0);">;</span>
span style="color: rgb(0, 128, 0);"></span>
span style="color: rgb(0, 128, 0);">-- ----------------------------</span>
-- records of events
-- ----------------------------
insert into `events` values ('1', 'new year&<span style="color: rgb(0, 128, 0);">;#039;s day', 'happy new year!', '2010-01-01 00:00:00', '2010-01-01 23:59:59');</span>
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, 128, 0);">;</span>
php开发制作一个简单的活动日程表calendar第二篇,请点击。
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持硕编程。
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!