PHP開發(fā)制作一個(gè)簡(jiǎn)單的活動(dòng)日程表Calendar
材料取之深入PHP與JQuery開發(fā),這本書實(shí)際上就是講述一個(gè)活動(dòng)日程表。
此文章適合從其它語(yǔ)言(如java,C++,python等)轉(zhuǎn)到php,沒(méi)有系統(tǒng)學(xué)習(xí)php,或者是php初學(xué)者,已經(jīng)對(duì)程序有較深理解的朋友
以上為文件目錄結(jié)構(gòu),public為程序根目錄,目的是為了安全方面的考慮,把核心程序放在外界訪問(wèn)不到的地方。
本地的演示地址為:http://localhost/index.php
首先是數(shù)據(jù)庫(kù)的腳本:
/* 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開發(fā)制作一個(gè)簡(jiǎn)單的活動(dòng)日程表Calendar第二篇,請(qǐng)點(diǎn)擊。
以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。
相關(guān)文章
php 實(shí)現(xiàn)簡(jiǎn)單的登錄功能示例【基于thinkPHP框架】
這篇文章主要介紹了php 實(shí)現(xiàn)簡(jiǎn)單的登錄功能,結(jié)合實(shí)例形式分析了基于thinkPHP框架登錄功能視圖與控制器簡(jiǎn)單實(shí)現(xiàn)技巧,需要的朋友可以參考下2019-12-12PHP類的自動(dòng)加載機(jī)制實(shí)現(xiàn)方法分析
這篇文章主要介紹了PHP類的自動(dòng)加載機(jī)制實(shí)現(xiàn)方法,結(jié)合實(shí)例形式分析了__autoload方法進(jìn)行類自動(dòng)加載操作的相關(guān)實(shí)現(xiàn)技巧與使用注意事項(xiàng),需要的朋友可以參考下2019-01-01ThinkPHP5框架實(shí)現(xiàn)簡(jiǎn)單的批量查詢功能示例
這篇文章主要介紹了ThinkPHP5框架實(shí)現(xiàn)簡(jiǎn)單的批量查詢功能,結(jié)合實(shí)例形式分析了thinkPHP5框架使用原生SQL語(yǔ)句查詢、批量查詢、快速查詢、聚合查詢等操作實(shí)現(xiàn)技巧,需要的朋友可以參考下2018-06-06PHP對(duì)接微信公眾平臺(tái)消息接口開發(fā)流程教程
這篇文章主要介紹了PHP對(duì)接微信公眾平臺(tái)消息接口開發(fā)流程,如何使用PHP版接口操作公眾平臺(tái)消息,需要的朋友可以參考下2014-03-03PHP解析html類庫(kù)simple_html_dom的轉(zhuǎn)碼bug
這篇文章主要介紹了PHP解析html類庫(kù)simple_html_dom的轉(zhuǎn)碼bug ,需要的朋友可以參考下2014-05-052個(gè)Codeigniter文件批量上傳控制器寫法例子
這篇文章主要介紹了2個(gè)Codeigniter文件批量上傳控制器寫法例子,需要的朋友可以參考下2014-07-07