PHP開發製作一個簡單的活動議程表Calendar_php執行個體

來源:互聯網
上載者:User

材料取之深入PHP與JQuery開發,這本書實際上就是講述一個活動議程表。

此文章適合從其它語言(如java,C++,python等)轉到php,沒有系統學習php,或者是php初學者,已經對程式有較深理解的朋友

以上為檔案目錄結構,public為程式根目錄,目的是為了安全方面的考慮,把核心程式放在外界訪問不到的地方。

本地的示範地址為:http://localhost/index.php

首先是資料庫的指令碼:

/*Navicat MySQL Data Transfer Source Server : localhost_3306Source Server Version : 50130Source Host : 127.0.0.1:3306Source Database : php-jquery_example Target Server Type : MYSQLTarget Server Version : 50130File 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第二篇,請點擊。

以上就是本文的全部內容,希望對大家的學習有所協助,也希望大家多多支援雲棲社區。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.